Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


How to enable DOM parser use the Schema to validate an XML Document

From: Sagar Balan <sagar.balan@-----.--->
To: 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*


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent