Learning
Documentation
Community
Open Exchange
Global Masters
Home / Class Reference / ENSLIB namespace / EnsLib.XPATH.MessageAdaptor
Private  Storage   

EnsLib.XPATH.MessageAdaptor


class EnsLib.XPATH.MessageAdaptor extends
%RegisteredObject

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

Inventory


Parameters Properties Methods Queries Indices ForeignKeys Triggers
1 4


Summary


Properties
Document

Methods
%AddToSaveSet %ClassIsLatestVersion %ClassName %ConstructClone
%DispatchClassMethod %DispatchGetModified %DispatchGetProperty %DispatchMethod
%DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty %Extends
%GetParameter %IsA %IsModified %New
%NormalizeObject %ObjectModified %OriginalNamespace %PackageName
%RemoveFromSaveSet %SerializeObject %SetModified %ValidateObject
Evaluate Example GetSingleValue XmlStream


Properties


• property Document as %XML.XPATH.Document [ Transient ];
This is the Parsed document against which XPATH expressions are evaluated

Methods


• method Evaluate(pContext As %String, pExpression As %String, Output pResults As %ListOfObjects(CLASSNAME="%XML.XPATH.RESULT")) as %Status
Evaluate an XPATH expression, obtaining a reader which can be used to read the results
• classmethod Example()
• method GetSingleValue(pContext As %String, pExpression As %String, Output pResultValue As %String) as %Status
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
Override this method in your message subclass to return the XmlStream on which to evaluate XPATH expressions