I have a situation where I do not control the XML files I am reading in so
they may not have a DocType declaration in them.  However, I do have access
to the DTD that I want the documents I'm working with to conform to.  Is
there a way to tell the parser to validate the documents it parses using a
default DTD or to force validation with a given DTD?  For example,
something like:

parser.setDefaultDTD( "mydtd.dtd" );
parser.parser( myInputSource );

Any ideas on how I could do this?

Thanks,
Scott

-==================================================-
Scott DeWitt                IBM WebSphere Transcoding Publisher
[EMAIL PROTECTED]
(919) 486.1919   t/l 526.1919
-==================================================-



---------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to