Re: [xml] Avoiding document declaration on xmlDocDumpMemory?




Thanks for the tip - unfortunately xmlElemDump only does it to a file descriptor - for performance reasons I need a direct memory dump, although having said that for the time being I may have to use xmlElemDump!

Regards,
                Jose.

On 21 May 2004, at 10:22 am, dodji seketeli org wrote:

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]