W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2001

Re: DOM Level 3 XPath Specification and entity references

From: Joseph Kesselman <keshlam@us.ibm.com>
Date: Wed, 10 Oct 2001 12:04:40 -0400
To: www-dom@w3.org
Message-ID: <OF797D6D20.A5D35FA8-ON85256AE1.0057930E@pok.ibm.com>

In your example, "/top/text()" would return a pointer to the Text node
containing "This is the " (don't forget the trailing space). Your
application could (and presumably would, if you aren't interested in the
details of the DOM structure) then call that object's wholeText() method
rather than retrieving its value/data, which would yield the DOMString
"This is the middle bit part".

(Note that since CDATASection inherits from Text, it too supports the
wholeText() operation.)

______________________________________
Joe Kesselman  / IBM Research
Received on Wednesday, 10 October 2001 12:05:15 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:55 GMT