ok, with PSVIImplementation and XSValue I can obtain de type of the element,
but if I have,

<version>2.5</version>

and the corresponding xsd definition is:

<xsd:element name="version" type="xsd:double" />

with XSValue, how could I obtain the value 2.5 (that is the value of a text
node) directly like a double value and not like XMLCh* with getNodeValue??

Thank you.

2007/9/20, David Bertoni <[EMAIL PROTECTED]>:
>
> Laura Lozano wrote:
> > Hello,
> >
> > I'm using DOMBuilder to parse xml documents and create c++ objects
> > traversing the DOMTree obtained with a TreeWalker.
> >
> > In the xml documents I've different types like xsd:double,
> xsd:bool  that I
> > would like to transform in c++ equivalent types, but  ¿how  could I do
> it
> > if the  method getNodeValue() return  a type XMLCh?
> Take a look at the class XSValue, which is in
> src/xercesc/framework/psvi/XSValue.hpp.  It's easier to use when you're
> validating, and you can the PSVI directly, but it should work for your
> purposes.
>
> There's also a test program, XSValueTest, that should give you some ideas
> of how to use XSValue.
>
> Dave
>

Reply via email to