Yes schema validation works fine in Xerces for C++.
The key is to set the correct flags on the parser. The
example below does not use the schema that is
specified in the XML but sets a specific schema on the
parser:

mpoParser->setExternalNoNamespaceSchemaLocation((const
char*)strSchema);

mpoParser->setDoNamespaces(true);
mpoParser->setDoSchema(true);
mpoParser->setValidationSchemaFullChecking(true); 
mpoParser->setValidationScheme(AbstractDOMParser::Val_Always);

//parse buffer
mpoParser->parse(oSourceBuffer);


--- Esther Parrilla Endrino
<[EMAIL PROTECTED]> wrote:
> Hi!
> 
> I�d like to know if Xerces for C++ already supports
> validating XML files 
> against W3C schemas as Xerces for Java does...
> Is possible that naw? Does anybody has an example of
> that?
> 
> many thanks,
> 
> esther
> 
> -- 
> 
> Esther Parrilla Endrino
> Ground Segment Systems Division
> DEIMOS SPACE S.L.
> e-mail: [EMAIL PROTECTED]
> tel:          00 34 91 806 34 57
> 
> ~ Code matters more than comercials ~
> 
> --
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to