We implemented this by building a wrapping class for the DTD to create something like:
 
<!DOCTYPE dummy [[
<!ELEMENT dummy EMPTY>
<!ENTITY % myDTD SYSTEM "locationURI">
%myDTD;
]]>
<dummy/>
 
Then give this to the parser.
 
It's a bit of a hack, but it works.
 
 
Rgds
 
John
 

_______________________________________________________
John Anderson

CTO BarbadosoftTM
The XML Management Company
+31 (0)20 750 7582 / +31 (0)6 65 347 448 / www.barbadosoft.com

- putting the "X" in "XML" -

-----Original Message-----
From: Artur Lorincz [mailto:[EMAIL PROTECTED]
Sent: 06 December 2001 10:03
To: [EMAIL PROTECTED]
Cc: Bledea Cristian
Subject: DTD parsing

Hello,
 
I would like to ask whether it is possible to read in stand-alone DTDs with xerces - not an xml file, but only the DTD. In the case this is possible, is there any sample code, or documentation about how could I program this.
 
thank you in advance,
   drs. Artur Lorincz

The information transmitted by this e-mail message is intended solely for the use of the person to whom or entity to which it is addressed. The message may contain information that is privileged and confidential. Disclosure, dissemination, distribution, review, retransmission to, other use of or taking any action in reliance upon this information by anyone other than the intended recipient is prohibited. If you are not the intended recipient, please do not disseminate, distribute or copy this communication, by e-mail or otherwise. Instead, please notify us immediately by return e-mail (including the original message with your reply) and then delete and discard all copies of the message.


Although we have taken precautions to minimize the risk of transmitting viruses we nevertheless advise you to carry out your own virus checks on any attachment to this message. We accept no liability for any loss or damage caused by viruses.

Reply via email to