XPath Wildcards in Mendix (Is it possible?) - Mendix Forum

XPath Wildcards in Mendix (Is it possible?)


Comment  “Ask you question” version names should be in a format so the the drop down sorts properly and new/beta versions should be included

8.4 vs 8.01 does not sort properly


This question is relative to Studio Pro 8.14.1


So to the kind folks out there, can you help me with:

Are wildcards possible in Mendix to create an XPath to return a "list" of "values"? 

Mendix documentation does not address this, but industry standard XPath does.

i.e. Key1=ABC AND Key2=DEF AND Key3=XYZ??? 
where ??? needs a wild card, perhaps ‘*’ or “%”, to include 001, 002, 003, 004, etc
or instead of “=”, some type of sql "like" clause with a wild card, (etc.)

Attempts have been made to produce this result but have not been successful.

Key1        Key2        Key3    Value
ABC        DEF        XYZ001    Peace be with you
ABC        DEF        XYZ002    Peace be with us all
ABC        DEF        XYZ003    John Denver the Peace Song

XPath AND ‘XYZ*’ did not work

XPath AND ‘XYZ%’ did not work

2 answers

Did you try the contains option? See documentation here: https://docs.mendix.com/refguide/xpath-contains





This is not possible using xpath in Mendix. Perhaps OQL can do this:  https://docs.mendix.com/refguide/oql-operators