XPath abbreviated syntax
XSM User's Guide
You can use the following abbreviated syntax to define an XPath expression:
Syntax
/
.
..
*
employee
s:employee
@numEmployee
@*
../@numEmployee
employee[1]
employee[last()]
*/employee
//employee
.//employee
company//employee
//company/employee
Chapter 2 Building an XML model
Description
Root node of the XML document. It is the root
element with its ramifications
Selects the context node. It is the current
element (on which an identity constraint is
defined) with its ramifications
Selects the context node parent
Selects all the child elements of the context
node
Selects all the employee child elements of the
context node
Selects all the employee child elements of the
context node, defined in the namespace with the
"s" prefix
Selects the numEmployee attribute of the
context node
Selects all the attributes of the context node
Selects the numEmployee attribute of the
context node parent
Selects the first employee child element of the
context node
Selects the last employee child element of the
context node
Selects all the employee grandchildren of the
context node
Selects all the employee descendants of the root
node
Selects the employee descendants of the context
node
Selects the employee descendants of the
company child elements of the context node
Selects all the employee elements with company
as parent element in the context node
71
Need help?
Do you have a question about the PowerDesigner XML and is the answer not in the manual?
Questions and answers