xerces-j-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henry Chan" <hc...@datawave.ca>
Subject RE: Validating against a DTD
Date Fri, 08 Nov 2002 18:25:28 GMT
Thanks for the suggestion Peter …

But this doesn’t solve my problem.  An EntityResolver will only be
triggered when an XML

doc has an Entity to be resolved (i.e. the original XML doc already has
to have a DOCTYPE defined).

In my scenario, my customer is sending me an XML doc without a DOCTYPE.

 

Any other ideas are appreciated

Thx,

Henry

 

-----Original Message-----
From: Hellmann Peter (ext) [mailto:Peter.Hellmann@mch.siemens.de] 
Sent: Thursday, November 07, 2002 11:40 PM
To: 'xerces-j-user@xml.apache.org'
Subject: AW: Validating against a DTD

 

Henry,

 

for this case you should use an EntityResolver where you can provide
your own DTD.

 

cheers

 

 

Peter

-----Ursprüngliche Nachricht-----
Von: Henry Chan [mailto:hchan@datawave.ca]
Gesendet: Freitag, 8. November 2002 00:33
An: xerces-j-user@xml.apache.org
Betreff: 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