class %XML.XPATH.Utils.TreeBuilder
extends %XML.XPATH.ResultHandler
This class stores the results of evaluation of an XPATH expression in ^CacheTemp(Tree,MatchKey)
The Tree is a unique integer value, the MatchKey is an integer key which varies from 1 .. n. For
each match of the xpath expression, the results are stored in the appropriate subtree of ^CacheTemp.
The match results can be of two forms, values and DOMS. If the XPATH expression matches an element,
a DOM is returned which represents the matching element and it's childeren. If the XPATH expression matches
a value then just the value is returned.
property Results
as %CacheString;
This holds the collection of results
property Tree
as %Integer;
This holds the current first subscript of ^CacheTemp
method Attribute(pIndex As %Integer, pParent As %Integer, pName As %String, pLocalName As %String, pUri As %String, pValue As %String)
method EndMatch(pMatch As %Integer)
This method is called at the end of a match
method Node(pIndex As %Integer, pParent As %Integer, pNodeType As %Integer, pName As %String, pLocalName As %String, pUri As %String)
method Result(pChunk As %Integer, pResult As %String)
method StartMatch(pResultType As %Integer)
This method is called when a match is made. It specifies the Match key as well
as the type. The type may be $$$XPATHVALUE or $$$XPATHDOM
method Value(pIndex As %Integer, pChunk As %Integer, pValue As %String)