Interstage Shunsaku Data Manager Application Development Guide - Microsoft(R) Windows(R) 2000/ Microsoft(R) Windows Server(TM) 2003 - - UNIX - |
Contents
Index
![]() ![]() |
Appendix B Format of Search, Return and Sort Expressions | > B.2 Common Format |
A text expression specifies the (string) value of the text node below element nodes of an XML document specified using path expressions.
The definition format for text expressions is shown below.
If the '//' path operator is specified at the end of a path expression, the '/' after the path expression will be omitted.
The path expression is used to identify the positions of particular nodes within the XML tree structure.
This function specifies the value of the text node below the element nodes specified by the path expression. Always specify text() in text expressions.
Example
An example text expression is shown below.Document
<company> <name>fujitsu</name> <employee> <name>smith</name> <id>2000</id> </employee> </company>
/company/employee/name/text() |
This text expression indicates the value of the text node below the 'name' element node, below the 'employee' element node, below the 'company' element node, below the root node. This value is 'smith' indicated by (1) in the above figure.
Contents
Index
![]() ![]() |