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:[EMAIL PROTECTED]
Sent: Thursday, November 07, 2002 11:40 PM
To: '[EMAIL PROTECTED]'
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:[EMAIL PROTECTED]
Gesendet: Freitag, 8. November 2002 00:33
An: [EMAIL PROTECTED]
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

 

Reply via email to