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