Re: [xml] libxml2 -- xmlDocDumpMemory and xmlSaveFile output is only one line

On Fri, Sep 14, 2001 at 12:39:29PM +0800, Wang Jian wrote:
I notice that the different behaviour of libxml under Linux and

  it's actually a difference in behaviour between 2.3.4 and 2.4.4

I build a tree using the revised example at
And dump it to memory or save it to file using

xmlDocDumpMemory()  xmlSaveFile()

Under linux, the output is '\n' seperated after each closing </tag>.
But under Windows, except the "<?xml version="1.0"?>\n", all other
output is in one line, then '\n' to end
  I added #1 yesterday it answer your question

The libxml2 I use under linux is libxml2-2.3.4-1mdk in mandrake.
The Windows 2000 use libxml2-2.4.4.

  if you use the 2.4.4 RPM I provide you will get a similar behaviour.

  Seems I really need to fix the example...


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml Gnome XML XSLT toolkit | Rpmfind RPM search engine

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