xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manish Worlikar" <wo...@hotmail.com>
Subject Re: Please help with the Xerces C++ DOMParser class
Date Sat, 16 Dec 2000 20:47:18 GMT
Hi,
I am new to this web development stuff but still I will try to help you.
Please read this article and you may get your answer.
Let me know if it works for you.
http://www.w3schools.com/dtd/dtd_validation.asp

Regards,
Manish Worlikar


>From: "Bill Halchin" <bhalchin@hotmail.com>
>Reply-To: general@xml.apache.org
>To: general@xml.apache.org
>CC: bhalchin@hotmail.com, jlu@radiantsw.com
>Subject: Please help with the Xerces C++ DOMParser class
>Date: Sat, 16 Dec 2000 06:06:26
>
>Hello,
>
>  I have the following XML "file":
><?xml version='1.0' encoding='ascii'?> <!DOCTYPE arbitrate [<!ELEMENT
>arbitrate (#PCDATA)>]> <arbitrate> 1234 </arbitrate>
>
>I am putting it in a MemInputSource object and using the DOMParser
>class to parse. If you notice I have an internal DTD. How do I
>tell the DOMParser instance that I want my XML "doc/file" to be
>validated??? I looked the DOMParser API and saw the
>setValidationScheme method. This doesn't seem to cause validation
>to be done.
>
>  Another question: assumimg I get the above probelm solved, if the
>DOMParser instance encounters a non-valid XML file will it
>throw an XMLException or so other kind of exception?? Or to put it
>another way, how do I know if validation failed?
>
>Regards,
>Bill
>
>
>_________________________________________________________________
>Get your FREE download of MSN Explorer at http://explorer.msn.com
>
>
>---------------------------------------------------------------------
>In case of troubles, e-mail:     webmaster@xml.apache.org
>To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
>For additional commands, e-mail: general-help@xml.apache.org
>

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com


Mime
View raw message