LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   anyone familiar with the xerces xml parser used by apache? (https://www.linuxquestions.org/questions/programming-9/anyone-familiar-with-the-xerces-xml-parser-used-by-apache-158469/)

zovres 03-16-2004 11:58 AM

anyone familiar with the xerces xml parser used by apache?
 
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);
delete dw;
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 :)


All times are GMT -5. The time now is 07:48 PM.