Stripping leading and trailing spaces???
david at megginson.com
Wed Feb 3 00:42:17 GMT 1999
Dan Finkelstein writes:
> It seems that leading and trailing spaces are being removed from
> PCDATA before it is returned to me. For example,
> <text> Hello there! </text
> comes back as "Hello there!" instead of " Hello there! ". I'm
> using Sun's early release parser, and I'm wondering if this is
> standard XML behavior? if there is a way to preverse the spaces?
Which interface are you using? If you're using SAX, it could be that
the spaces are being delivered in separate characters() events
(parsers are allowed to chunk up character data any way they want).
All the best,
David Megginson david at megginson.com
xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)
More information about the Xml-dev