Try OpenEdge Now
skip to main content
BPM Events User's Guide
XML messages : XML data field access syntax : Bracket notation for XML data fields
 

Bracket notation for XML data fields

When a namespace is used for XML data, ordinary dot notation cannot be used unless the default namespace is defined. In this case, you must either declare default namespace, or use bracket notation ‘[’ ‘]’.
For example, you may use item["po:quantity"] instead of item.quantity. This notation implicitly depends on the namespace context. BPM Events compiler detects the context and passes it to the underlying XPath engine.
Note that this notation uses different semantics depending on the type of the accessed value. Namely, if the item is infopad, then this means index access.