How to access one specific element in a document

Hello,

I am new to webMethods and there’s something I used to do with another tool that I don’t know how to do in WM, if it’s even possible.

I have a document that contains a document list of keys/values. I want to get the value of one specific element of the list whose key is ‘myKey’, except I don’t know its index and I don’t want to loop over the list. Something like /document/documentList[key=‘myKey’]/value.

What is the correct syntax for this ?

Thanks for your help !

Have a look at the documentation for XQL (XML Query Language). It supports this xquery-like function.

Mark

[URL]wmusers.com

refer above URL…might help you…