I have constructed a tree (using the CreatDOMDocument sample) and I wat to be able to save this tree in a simple string in order to cout it and pass it as a string.
I spent a lot of time and don't get anything usefull :\
here's what I do to try to have a a string:
DOMWriter *dw = impl->createDOMWriter();
XMLCh *xcXML = dw->writeToString(*doc);
char *cXML = XMLString::transcode(xcXML);
XERCES_STD_QUALIFIER cout << *xcXML << XERCES_STD_QUALIFIER endl;
but cout prints "60" I don't know why and actually it make sens, that must be the ascii value of on of the char...
hell, I really don't know what to do
I hope someone already used that
any help appreciated thx