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 Shantanu Dutta <ns...@yahoo.com> on 2001/12/18 12:12:22 UTC

Validating XML.

Hi,

I have been looking to validate and XML, without
having  a reference of the DTD in the XML file. I am
not so sure if this is possible.
At present, I have an XML string as a return value of
a function and cannot have information regarding the
DTD in the string itself. So, I want to know if there
is an API that takes the XML file path & the DTD file
path and validates the XML.
I would really appreciate any information on this.

Beside, while parsing an XML document using DOMParser,
I refer to the DTD using the following in the XML
file:
<!DOCTYPE NEInfo [
...
]>

But while parsing, the parser tries to parse the above
("DOCTYPE") as an element.
I am not sure if this is a valid behaviour.
Please let me know any inputs on this.

Cheers
Shantanu.

__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org