Skip to main content

%XML.Utils.SchemaHandler

Class %XML.Utils.SchemaHandler Extends %XML.SAX.ContentHandler [ System = 3 ]

A SAX content handler that processes XML Schema files.
This class is used by the XML Schema Wizard; it is not for direct use within applications. This class is used internally by InterSystems IRIS. You should not make direct use of it within your applications. There is no guarantee made about either the behavior or future operation of this class.

Properties​

Tree​

Property Tree As %Integer;

Integer tree id within ^IRIS.Temp

InSchema​

Property InSchema As %Boolean [ InitialExpression = 0 ];

Are we in a schema?

Level​

Property Level As %Integer [ InitialExpression = 0 ];

Stack level

ElStack​

Property ElStack As %String [ MultiDimensional ];

Stack of parsed elements.
Each entry contains: $LB(local, elno)

Reader​

Property Reader As SchemaReader;

The SchemaReader that invoked us.

SourceName​

Property SourceName As %String;

The file we are parsing

PrefixMap​

Property PrefixMap As %String [ MultiDimensional ];

List of namespace prefixes and their mappings
PrefixMap(prefix) = uri
PrefixMap(prefix,#) = uri (for "stacked" prefixes)

TargetNS​

Property TargetNS As %String;

current target namespace for this schema

SaveTargetNS​

Property SaveTargetNS As %String [ Private ];

Save original target namespace when starting processing of schema

Included​

Property Included As %Boolean;

included or imported schema being processed

Methods​

ParseFile​

ClassMethod ParseFile(filename As %String, reader As SchemaReader, target As %String = "", bInclude As %Boolean = 0) As %Status

Parse an XML Schema file

ParseStream​

ClassMethod ParseStream(stream As %AbstractStream, reader As SchemaReader) As %Status

Parse an XML Schema stream

ParseURL​

ClassMethod ParseURL(url As %String, reader As SchemaReader, target As %String = "", bInclude As %Boolean = 0) As %Status

Parse an XML Schema from a URL

UnpackAttrs​

Method UnpackAttrs(attrs As %List, ByRef array As %String)

Converts list of attrs into an array keyed by attr name

GetFullPath​

ClassMethod GetFullPath(base As %String, file As %String) As %String

startDocument​

Method startDocument()

startPrefixMapping​

Method startPrefixMapping(prefix As %Library.String, uri As %Library.String)

endPrefixMapping​

Method endPrefixMapping(prefix As %Library.String)

startElement​

Method startElement(uri As %Library.String, local As %Library.String, qname As %Library.String, attrs As %List)

endElement​

Method endElement(uri As %Library.String, local As %Library.String, qname As %Library.String)

characters​

Method characters(chars As %Library.String, length As %Library.Integer)