Skip to main content

%XML.Exchange.Reader

Class %XML.Exchange.Reader Extends %XML.Reader [ System = 4 ]

Configuration Management XML Reader This class is used while importing Configuration Items. Do not use this class directly.

Properties

Filename

Property Filename As %String;

The filename used as an XML source.

Methods

ResolveElement

Method ResolveElement(element As %String, defaultNamespace As %String) As %String [ Internal ]

ResolveElement() returns the class name corresponding to an element name within the current XMLReader context.

Next

Method Next(ByRef oref As %ObjectHandle, ByRef sc As %Status, namespace As %String = "", ByRef qstruct As %String) As %Integer

Get and return the next object.

Next returns 1 (true), if the next object matching one of the Correlate criteria is found and successfully imported.
Next returns 0 (false) and a %Status of $$$OK in sc after all objects have been imported.
Next returns 0 (false) and an error %Status in sc, if an error has occurred importing this object.

The namespace argument indicates the default namespace for this XML file.

OpenFile

Method OpenFile(xmlsource As %String, format As %String) As %Status

Import XML source from a file using %XML.Document.