Interstage Shunsaku Data Manager Application Development Guide - Microsoft(R) Windows(R) 2000/ Microsoft(R) Windows Server(TM) 2003 - - UNIX -
Contents Index PreviousNext

Appendix B Format of Search, Return and Sort Expressions> B.2 Common Format

B.2.2 Text Expressions

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.

[Figure B-3 Text Expression Definition Format]

If the '//' path operator is specified at the end of a path expression, the '/' after the path expression will be omitted.

mark1Path Expressions

The path expression is used to identify the positions of particular nodes within the XML tree structure.

mark1text()

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>

[Figure B-4 Example Text Expression]

/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 PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2006