xerces-j-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Swanson, Brion" <Brion.Swan...@westgroup.com>
Subject RE: Validating against a DTD
Date Fri, 08 Nov 2002 13:48:22 GMT
Hi Henry,
 
The way I've handled this in the past is to peek at the incoming stream
before the parser ever gets a look at it, and insert a DOCTYPE element in
the front of the stream.  Note: this may require removing or saving the XML
processing instruction and/or any comments that appear before the document
element if those items are important to you.
 
Cheers!
Brion

-----Original Message-----
From: Henry Chan [mailto:hchan@datawave.ca]
Sent: Thursday, November 07, 2002 6:33 PM
To: xerces-j-user@xml.apache.org
Subject: Validating against a DTD



Hi all,

 

Just wondering if there was a way to validate an XML doc against a DTD

*WITHOUT* the XML doc specifying which DTD to load (i.e. no DOCTYPE) My
customer is sending an XML stream and I want to validate it against my own
DTD 

 

thx,

Henry

 


Mime
View raw message