[xml] Loss of whitespace

Date view Thread view Subject view Author view

From: Paul DuBois (paul@snake.net)
Date: Wed Mar 01 2000 - 14:40:39 EST


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?

-- 
Paul DuBois, paul@snake.net
----
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