InterSystems IRIS Data Platform 2020.4 > Class Reference > ENSLIB namespace > EnsLib.XPATH.MessageAdaptor


class EnsLib.XPATH.MessageAdaptor extends %Library.RegisteredObject

This is a mixin class that provides a convenient means of evaluating XPATH expressions the contents of messages containing XML

Property Inventory

Method Inventory


property Document as %XML.XPATH.Document [ Transient ];
This is the Parsed document against which XPATH expressions are evaluated
Property methods: DocumentGet(), DocumentGetSwizzled(), DocumentIsValid(), DocumentNewObject(), DocumentSet()


method Evaluate(pContext As %String, pExpression As %String, Output pResults As %ListOfObjects(CLASSNAME="%XML.XPATH.RESULT")) as %Status [ Language = objectscript ]
Evaluate an XPATH expression, obtaining a reader which can be used to read the results
classmethod Example() [ Language = objectscript ]
method GetSingleValue(pContext As %String, pExpression As %String, Output pResultValue As %String) as %Status [ Language = objectscript ]
Often you know that a given XPATH expression will retrieve just a single result, this is a convenience method which performs the intermediate steps to evaluate the expression obtain that result for you. If the expression
method XmlStream(Output pStream As %Stream.Object) as %Status [ Language = objectscript ]
Override this method in your message subclass to return the XmlStream on which to evaluate XPATH expressions

Inherited Members

Inherited Methods