![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Re: Migration from DTD to XSchema [Thread Next] How to enable DOM parser use the Schema to validate an XML DocumentTo: xmlschema-dev@--.--- Date: 10/5/2005 11:08:00 PM Hi to all XML users, I'm using *DOM Parser provided by Xerces* C++ on HP-UX . I'm building the parser using the *DOMBuilde*r object(parse member function). *My Requirement => An XML file has to be parsed and validated against an = XML schema*. The XML schema has been created according to W3schools.org<http://W3schools.org>website. Though I've mentioned the XMLSchema(<GenericLaunchMsgAdapter_contacts xsi:noNamespaceSchemaLocation="LaunchAdapter.x sd"> ) in the XML document and enabled the parser settings like fgXercesSchema,fgXercesSchemaFullChecking,:fgDOMValidateIfSchema *the parser does not validate the XML document using the schema*. I've tried mentioning the schema location in the XML document as file://<absolute_path.xsd> . This also does not work. *How do I make the DOM parser validate my XML file against the XML schema*? *Could anyone please help me?* ** *Thanks & Regards,* *Sagar Balan* | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
