[xml] Simple use of libxml


First, congratulations for the libxml dev team ;-)

I'm looking for an easy way to manipulate xml datas like this :

        XML * xmldatas = XMLRead("/tmp/foo.xml");

        title = get(xmldatas, "/document/title");
        set(xmldatas, "/document/title", "New Title");
        // document/title created if doesn't exist.

        XMLWrite(xmldatas, "/tmp/foo_new.xml");

I've looked at the testXPath exemple but it's not so easy.
Is this can become a new feature ?


Woody 3.0
Linux tanna 2.4.14 #3 SMP Thu Dec 6 14:04:03 CET 2001 i686 unknown

PGP fingerprint : 9AFA 15EC 96C9 F607 EBC1  DD41 70C5 F0E0 25A5 105B

Attachment: pgp7ftvczADzr.pgp
Description: PGP signature

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