You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Esther Parrilla Endrino <es...@deimos-space.com> on 2002/11/26 18:53:53 UTC

Doubts about schemas

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: esther.parrilla@deimos-space.com
tel:  	00 34 91 806 34 57

~ Code matters more than comercials ~

--



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Re: Doubts about schemas

Posted by Tinny Ng <tn...@ca.ibm.com>.
http://xml.apache.org/xerces-c/schema.html has the details.

Tinny
----- Original Message -----
From: "Esther Parrilla Endrino" <es...@deimos-space.com>
To: <xe...@xml.apache.org>
Sent: Tuesday, November 26, 2002 12:53 PM
Subject: Doubts about schemas


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: esther.parrilla@deimos-space.com
tel:  00 34 91 806 34 57

~ Code matters more than comercials ~

--



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Re: Doubts about schemas

Posted by Andreas Oesterer <oe...@yahoo.com>.
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
<es...@deimos-space.com> 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: esther.parrilla@deimos-space.com
> tel:  	00 34 91 806 34 57
> 
> ~ Code matters more than comercials ~
> 
> --
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail:
> xerces-c-dev-help@xml.apache.org
> 


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

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org