You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Neil Graham <ne...@ca.ibm.com> on 2003/05/06 23:55:49 UTC
Re: How to parse DOCTYPE node...
Hi Seema,
The answer to this question depends on the errors the parser is reporting
and the code you're using to parse the document. Have you registered an
EntityResolver (or DOMEntityResolver) to help the parser find out where
"orders.dtd" is? Have you registered an ErrorHandler (DOMErrorHandler as
appropriate) so that the parser knows where to send error output? What
features are you setting on the parser?
Cheers,
Neil
Neil Graham
XML Parser Development
IBM Toronto Lab
Phone: 905-413-3519, T/L 969-3519
E-mail: neilg@ca.ibm.com
|---------+---------------------------->
| | "seema chavan" |
| | <seemaschavan@hot|
| | mail.com> |
| | |
| | 05/06/2003 01:38 |
| | PM |
| | Please respond to|
| | xerces-c-dev |
| | |
|---------+---------------------------->
>---------------------------------------------------------------------------------------------------------------------------------------------|
| |
| To: xerces-c-dev@xml.apache.org |
| cc: |
| Subject: How to parse DOCTYPE node... |
| |
| |
>---------------------------------------------------------------------------------------------------------------------------------------------|
Hello,
My first question did not appear correctly. I am presenting the same
question again.
I am using Xerces-c (version 2.2) on solaris.
I have the following xml document.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Orders SYSTEM "orders.dtd">
<root>
<firstElement> first </firstElement>
<secondElement> second </secondElement>
</root>
When I parse the above document using XercesDOMParser or DOMBuilder
parser,
it reads just the first line of the document(i.e. xml version etc). But if
I remove DOCTYPE statement, it parse the whole document.
Will anybody please help me how to parse DOCTYPE node and how to change
SYSTEM with PUBLIC??
Thank you & Regards,
Seema.
MSN 8 with e-mail virus protection service: 2 months FREE*
--------------------------------------------------------------------- To
unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org For additional
commands, e-mail: xerces-c-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org