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
Windows.

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

I build a tree using the revised example at http://xmlsoft.org/.
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

  http://xmlsoft.org/FAQ.html#Developer
  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

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
veillard redhat com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/




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