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>

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.


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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:10 UTC