Re: [xml] Loss of whitespace

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Wed Mar 01 2000 - 15:24:08 EST


On Wed, Mar 01, 2000 at 01:40:39PM -0600, Paul DuBois wrote:
>
> I first reported this on the PHP4 mailing list, but after some more
> poking around, what I'm observing seems to be happening in the libxml
> library that PHP4 uses.
>
> Here's a sample document:
>
> <?xml version='1.0'?>
> <root>
> a<x> </x>b<x> </x>c
> </root>
>
>
> If I run this through "tester", I get:
>
> <root>
> a<x/>b<x/>c
> </root>
>
> Note that the whitespace which forms the contents of the <x> elements
> has been discarded.
>
>
> How do I defeat this?

  With an upgrade, I need to fix this ASAP. I guess it's worth releasing
an 1.8.7 lib just for this <grin/>

Daniel

-- 
Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes  | Today's Bookmarks :
Tel : +33 476 615 257  | 655, avenue de l'Europe | Linux XML libxml WWW
Fax : +33 476 615 207  | 38330 Montbonnot FRANCE | Gnome rpm2html rpmfind
 http://www.w3.org/People/all#veillard%40w3.org  | RPM badminton Kaffe
----
Message from the list xml@xmlsoft.org
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@xmlsoft.org


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:30:05 EDT