[xsd-users] XML validation against a schema

Andrey Yanukovich jas.post at gmail.com
Mon Oct 17 09:14:38 EDT 2005


Hi,
I think schema validation is very expensive to use for every xml
document processing, so i was trying to set a parser not to use a
schema validation in libxsd for some time. I did the following:
in file elements.txx
xsd::cxx::xml::dom::auto_ptr<xercesc::DOMDocument> xsd::cxx::xml::dom::dom(...)
i've changed parser features from true to false in calls
parser->setFeature (XMLUni::fgDOMNamespaces, true);
parser->setFeature (XMLUni::fgDOMValidation, true);
parser->setFeature (XMLUni::fgXercesSchemaFullChecking, true);

But it caused a process break and core dump while creating a class
instance from dom document. It was happened in class parser next_element ()
call during casting DOMNode* to DOMElement*. Could you suggest some
way to switch off the shema validation or may be use preparsing schema
grammar or something else in libxsd code?

Kind regards,
Andrey.





More information about the xsd-users mailing list