Home > Models
webMethods Master Data Manager XPath supported syntax
The notation used in webMethods Master Data Manager must conform to a simplified XPath1.0, in its abbreviated syntax.
The XPath general expression is: localisation[predicate]
Examples
Absolute path localisation:
/library/books/
Relative path localisations :
./Author
../Title
Root and descendant path localisations:
//books
Table path localisations with predicate :
../../books/[author_id = 0101 and (publisher = 'harmattan')]
/library/books/[not(publisher != 'dumesnil')]
Complex predicates :
starts-with(col3,'xxx') and ends-with(col3,'yyy')
contains(col3 ,'xxx') and ( not(col1=100) and date-greater-than(col2,'2007-12-30')
XPath expression syntax specification
Expression | Composition | Note/example |
XPath expression |
<container path>[predicate] |
/books[title='xxx'] |
<container path> |
<absolute path> | <relative path> |
|
<absolute path> |
/a/b | //b |
//books |
<relative path> |
../../b | ./b | b |
../../books |
Predicate syntax specification
Expression | Composition | Note/example |
<predicate> | Ex: A and ( B or not(C) ) A,B,C: <atomic expression> |
Composition of: logical operators braces, not() and atomic expressions. |
<atomic expression> | <path><comparator><criterion> | method(<path>,<criterion>) |
royalty = 24.5 starts-with(title, 'Johnat') booleanValue = true |
<path> | <relative path> |
Relative to the table wich contains it. ./authors title |
<comparator> | <boolean comparator> | <numeric comparator> | <string comparator> |
|
<boolean comparator> | = , != | |
<numeric comparator> | = , != , <, >, <=, >= | |
<string comparator> | = | |
<method> | <date method > | <string method > | |
<date method > | date-less-than, date-equal, date-greater-than | |
<string method > | matches, starts-with, ends-with, contains | |
<criterion> | <boolean criterion> | <numeric criterion> | <string criterion> | <date criterion> | |
<boolean criterion> | true , false | |
<numeric criterion> | integer or decimal | -4.6 |
<string criterion> | Quoted character string | 'azerty' |
<date criterion> | Quoted formated: 'YYYY-MM-DD' or 'YYYY-MM-DD hh:mm:ss' | '2007-12-31' |