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

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*

Received on Wednesday, 5 October 2005 12:37:31 UTC