Re: [xml] What does xmlCtxtReadFile() validate?
- From: Daniel Veillard <veillard redhat com>
- To: Ronny Seemann <rseemann konplan com>
- Cc: xml gnome org
- Subject: Re: [xml] What does xmlCtxtReadFile() validate?
- Date: Tue, 25 Jan 2005 12:33:52 -0500
On Tue, Jan 25, 2005 at 06:26:56PM +0100, Ronny Seemann wrote:
I work with the libxml2 version 2.6.11 and my plattform is embedded linux.
I want to validate a xml with his dtd. The example parse2.c use the function
xmlCtxtReadFile() to validate the xml. Does this function really validates the
options: a combination of xmlParserOption
XML_PARSE_DTDVALID = 16 : validate with the DTD
With that option xmlCtxtReadFile() will attempt DTD validation of the
Are there changes ( for xmlCtxtReadFile() )between the version 2.6.11 and the
If there was no changes I would not have released a new version. Sorry
I never dig out ancien versions to check. You can check new versions,
it's your side of the job to check it c.f.:
Can i actual use xmlCtxtReadFile() for dtd-validation or should i better use
another function (e.g. xmlValidateDtd () of the modul valid)?
no. xmlValidateDtd is not the validation as defined by the XML REC it
does not handle the internal subset. On the other hand you have control
over what DTD is used.
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/
] [Thread Prev