[xml] Question about 'text' elements
- From: Martin Craig <m s craig rl ac uk>
- To: xml gnome org
- Subject: [xml] Question about 'text' elements
- Date: 02 Jul 2002 13:25:32 +0100
Hi,
I've read the FAQ & understand why libxml2 adds text elements for docs
containing whitespace, e.g.
<tag1>
<tag2>hi</tag2>
</tag1>
gets parsed to
<tag1><text>
</text><tag2>, etc...
However I don't understand why
<URI>d2925.restart2.hdf</URI>
gets parsed to
<URI><text>d2925.restart2.hdf</text></URI>
Is this really correct behaviour? (I'm not an XML expert so it may well
be correct but it seems very bizarre).
Thanks to anyone who can set me straight on this,
Martin
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]