RE: DOMNode to char*

2003-12-02 Thread Milan Tomic
> Have you tried the DOMDocument::setEncoding(XMLCh *) method? No, it doesn't work. :( Still, there is "UTF-16" string in the output. I'm creating DOMDocument like this: DOMDocument *theDOM; const XMLCh* encNameStr = XMLString::transcode("UTF-8"); XMLCh tempStr[100]; XMLString::transcode("Cor

Re: DOMNode to char*

2003-12-02 Thread Berin Lautenbach
Hmm. Unexpected. Have you tried the DOMDocument::setEncoding(XMLCh *) method? Cheers, Berin Milan Tomic wrote: Berin, DOMWriter *dw = impl->createDOMWriter(); encNameStr = XMLString::transcode("UTF-8"); dw->setEncoding(encNameString); XMLCh* xcXML = dw->writeToString(*doc); char *cXML

RE: DOMNode to char*

2003-12-02 Thread Milan Tomic
Berin, > DOMWriter *dw = impl->createDOMWriter(); > encNameStr = XMLString::transcode("UTF-8"); > dw->setEncoding(encNameString); > XMLCh* xcXML = dw->writeToString(*doc); > char *cXML = XMLString::transcode(xcXML); > delete dw; > > Should work. I've just tried that and still there is:

Re: DOMNode to char*

2003-12-02 Thread Berin Lautenbach
"if". Thank you. -Original Message- *From:* Scott Cantor [mailto:[EMAIL PROTECTED] *Sent:* Monday, December 01, 2003 5:31 PM *To:* [EMAIL PROTECTED] *Subject:* RE: DOMNode to char* Just write a link between the serializer and an ostream&am

RE: DOMNode to char*

2003-12-02 Thread Milan Tomic
rom: Scott Cantor [mailto:[EMAIL PROTECTED] Sent: Monday, December 01, 2003 5:31 PMTo: [EMAIL PROTECTED]Subject: RE: DOMNode to char* Just write a link between the serializer and an ostream&. Then you can dump to cout or to a ostrstream or ostringstream and extract a char* fro

RE: DOMNode to char*

2003-12-01 Thread Scott Cantor
1:29 AMTo: [EMAIL PROTECTED]Subject: DOMNode to char* Berin,     I have one (beginner) question. It is more about Xerces. I can't get DOMNode (and all its children nodes) as char*. In templatesign.exe there is a way to send DOMNode to standard output: DOMNode *doc; ... co

DOMNode to char*

2003-12-01 Thread Milan Tomic
Title: DOMNode to char* Berin,     I have one (beginner) question. It is more about Xerces. I can't get DOMNode (and all its children nodes) as char*. In templatesign.exe there is a way to send DOMNode to standard output: DOMNode *doc; ... cout << doc;     But, I dont wont