"LiChao(�)" <[EMAIL PROTECTED]> writes:

> I feel so sorry...
> If I don't know the root of the DTD,I couldn't have built the temporary XML
> file at all. 
> As I had wrote
> <!DOCTYPE DOC SYSTEM "theMysteryDTDFile.dtd" > 
> then *DOC* must be the root element!
>  
> But how could I finish my aim if I even don't know the root? How to parse a
> DTD when I know nothing about it?

Write your own error handler and when you get an error with message:
  Message: Element 'DOC' was used in the DOCTYPE but never declared

keep going and don't exit.

jas.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to