Re: [xml] the xml schema...



On Tue, Jun 07, 2005 at 09:02:29AM +0530, Sameer Oak wrote:
Friends,

I was wondering if our gdome2 library had any set of APIs for xml
schema.

  I did not follow gdome2 evolution lately. you should ask on the
dedicated list.

It would be good to validate every xml file to its predefined
xml schema beforehand the parsing and just later to generating the xml
file.

This way, the possibility of having the errors occurred during the
actual parsing will be reduced since the chances of falling through the
error checking while parsing will be least and just in case if some
error check is not implemented.

  You can't check before parsing in Schemas/Relax-NG or even DTDs. All
those are based on the expectation the XML parser itself doesn't find
fata errors.

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]