Please enable JavaScript to view this site.

CMDebug / TCC-RT Help v. 27

@XMLXPATH[["filename"],path] : XML XPath query. The arguments are:

 

filename - name of XML file

path - one or more element accessors separated by a /.

 

If you don't specify a filename (which *must* be in double quotes), @XMLXPATH will use the XML file previously opened by @XMLOPEN.

 

To return an attribute, preface the attribute name with an @.

 

The path is a series of one or more element accessors separated by '/'. The path can be absolute (starting with '/') or relative to the current XPath location. The following are possible values for an element accessor:

'name'

A particular element name

name[i]

The i-th subelement of the current element with the given name

[i]

The i-th subelement of the current element

[last()]

The last subelement of the current element

[last()-i]

The subelement located at the last location minus i in the current element

name[@attrname="attrvalue"]

The subelement containing a particular value for a given attribute (supports single AND double quotes)

..

The parent of the current element