W3C home > Mailing lists > Public > xmlschema-dev@w3.org > May 2003

XML Schema validation in xerces parser in C++

From: Narendranath T S (RBIN/MDS) <Narendranath.TS@in.bosch.com>
Date: Wed, 7 May 2003 18:39:22 +0530
Message-ID: <DB9494CB877DD411BA0C00D0B73C6D24061279C9@kormail3.ban.in.bosch.com>
To: <xmlschema-dev@w3.org>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:37 GMT