[xml] libXML2 question



Hi,

  I upgraded libXML to libXML2 and find out one difference:

  On libXML, when I call

    xmlDocSetRootElement(m_doc, m_node);
    xmlDocDumpMemory(m_doc, &mem, size);
    fprintf(stderr, "%s\n", mem);

  It prints out XML with carriage return on each ending tag.
  So it has very nice readable format.

  But on libXML2, it just prints out a long string continuously.
  Are there any ways that I can still print it like before?

  Thank you very much for your help.

Regards,

Charles Shi



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