[xml] How to auto-validate against DTD or schema?
- From: "Parag Chandra" <pchandra slickedit com>
- To: <xml gnome org>
- Subject: [xml] How to auto-validate against DTD or schema?
- Date: Tue, 16 Nov 2004 09:36:57 -0500
Hi,
I've been using libxml2 to validate against DTDs thus far, by passing
the XML_PARSE_DTDVALID flag when I construct an xmlReader. Now I need to
do so against schemas, and I can't seem to figure out how to do it short
of explicitly passing the name of the schema to validate against to the
xmlSchema* APIs. This would require knowing the name of the schema ahead
of time, which I do not. Is there some way to automatically validate
against either a DTD or schema, depending on which is present in the XML
document? Thanks.
-Parag
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]