> 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
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
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:
"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
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
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
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