Click to return to the XML (Extensible Markup Language) home page    
pi Method     textnode Method     Collection Methods    
Web Workshop  |  XML (Extensible Markup Language)

text Method


Returns the collection of text or cdata nodes. Synonymous with the pattern textnode() | cdata().

Syntax

text()

Remarks

Note that there is a subtle difference between the Microsoft® Internet Explorer 5 implementation and the December 1998 XSL Working Draft, which normalizes adjacent text and CDATA nodes into a single string that is matched in its entirety by "text()".

The text collection is different than the DOM text and XQL text methods, which return strings and not a list of text nodes. The XQL text method is not supported in this release.

Example

Find the text or CDATA nodes in each p element in the current context:

p/text()


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.