[Axl] howto add a new node to xml document?

Kostis Mentzelos mentzelos at gmx.net
Fri Jan 26 11:19:52 CET 2007


Hi list,

after searching a lot for a simple xml library I found this one and I 
realy like it very much!

anyway, I whould like to ask if it is possible and how to add a new node 
to an xml document.

what I have already done is:

I am opening an xml file with fopen, reading all the contents into 
xmlbuffer .

use:

axl_doc_parse to get the axldoc

axl_doc_get_root to get root node.

axl_node_create and axl_node_set_content to create a new node and add 
content to it.

*** I don't know how to add the new node to root node

then I call axl_doc_dump_pretty_to_file to write the xml document back 
to file.

and finaly axl_doc_free.

regards,
Kostis Mentzelos





More information about the Axl mailing list