Re: [xml] Avoiding document declaration on xmlDocDumpMemory?



Hi, 

I think you can try to get the document root element using
http://xmlsoft.org/html/libxml-tree.html#xmlDocGetRootElement and dump it
into a buffer using http://xmlsoft.org/html/libxml-tree.html#xmlElemDump .

Regards,

Dodji.

Selon Jose Commins <axora myrealbox com>:

      (libxml2, 2.6.10)

      Is there a simple way to avoid the document declaration from being 
output when using xmlDocDumpMemory / xmlDocDumpFormatMemory?

      I am concatenating several XML files and I am trying to avoid this:

<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>

      From being output at the start of the libxml2's XML memory dump.


Regards,
      Jose.

_______________________________________________
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]