Re: [xml] Question about 'text' elements



On Tue, Jul 02, 2002 at 01:25:32PM +0100, Martin Craig wrote:
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?

  Yes, this matches both the XPath data model and the Infoset one.
Specifications are on-line at http://www.w3.org/TR/

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]