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 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:09 UTC