Hi:
I'm working with a protocol based on XML, something like:
I can successfully parse these messages using xmlReadMemory and
navigating through the tree. When trying to create my own messages I
can create them successfully this way:
doc = xmlNewDoc(NULL);
node = xmlNewNode(NULL, BAD_CAST "Com
I have find a solution/workaround by using xmlNodeDump with the root node:
xmlBufferPtr buf = xmlBufferCreate();
int size = xmlNodeDump(buf, doc, node, 0, 0);
printf ("%s\n", buf->content);
xmlBufferFree (buf);
I'm not sure if it is the correct way to do it thought.
Best regards,
2014-08-20 19