xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Dewitt" <dewit...@us.ibm.com>
Subject How to force validation with a specific DTD?
Date Sat, 30 Jun 2001 19:23:20 GMT
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?


Scott DeWitt                IBM WebSphere Transcoding Publisher
(919) 486.1919   t/l 526.1919

In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org

View raw message