[xml] Question about 'text' elements



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]