Class Reference
%XML.XPATH.Utils.TreeBuilder
Server:appadmin-00044-deployment-6bf4cbc86d-9f4xc
Instance:IRIS
User:SuperUser
 
-
  [USER] >  [%XML] >  [XPATH] >  [Utils] >  [TreeBuilder]
Private  Storage

class %XML.XPATH.Utils.TreeBuilder extends %XML.XPATH.ResultHandler

This class stores the results of evaluation of an XPATH expression in ^IRIS.Temp(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 ^IRIS.Temp. 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.

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
2 6


Summary

Properties
Results Tree

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
Attribute EndMatch Node NodeType
Result StartMatch Value


Properties

• property Results as %RawString;
This holds the collection of results
• property Tree as %Integer;
This holds the current first subscript of ^IRIS.Temp

Methods

• 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)


Copyright (c) 2025 by InterSystems Corporation. Cambridge, Massachusetts, U.S.A. All rights reserved. Confidential property of InterSystems Corporation.