XML Schema validation in xerces parser in C++

Hello,
I want to validate an xml file based on a schema using the xerces
parser in C++.

here is the sample code.

//
bool doSchema = true;
after initializing the parser.
parser->setFeature(XMLUni::fgXercesSchema, doSchema);
parser->setFeature(XMLUni::fgDOMValidation, true);

but the xml file is probably not validated against the correct schema.I get
error at every element in the xml file.
Plz Could anyone throw some light.

Thaanx in advance.

rgds,
Naren.






Narendranath.T.S : (RBIN-MDS)
*    ++91-80-5081310  (Off.)         *  ++91-80-3281442  (Res.)       
* <mailto:  narendranath.ts@in.bosch.com> (Off.)
Robert Bosch India Limited
#123,Industrial Layout
Hosur Road,Koramangala
Bangalore- 560095, India

Received on Wednesday, 7 May 2003 09:19:50 UTC