[xml] New user of libxml




I'm looking for a simple example of a creation of a new
xml document from scratch (I mean from nothing).

attached is a code sample for creating a simple xml document, and saving it to file.

there isn't much more to know for building a complex one

Also I was looking for a function able to convert a Xml Doc
into a *char.
not sure to understand your question: if you want to dump your created xmlDoc structure to memory then you 
can use, for instance, xmlDocDumpMemory

best entry point for related issues is to browse http://xmlsoft.org/html/libxml-tree.html, you will find all 
functions needed.

Jean S.

Attachment: simple_create.c
Description: Binary data



Dejean Mansuy writes:
Hello!

I'm a using libxml for 2 days now ;)
I'm looking for a simple example of a creation of a new
xml document from scratch (I mean from nothing).

Also I was looking for a function able to convert a Xml Doc
into a *char.

Thanx a lot for your help
--
Mansuy DEJEAN <mdejean prosodie com>
Développement & Intégration - Boulogne
Prosodie <http://www.prosodie.com>
Tel: 01.46.84.16.78
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xml gnome org
http://mail.gnome.org/mailman/listinfo/xml



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]