Class Reference
%XML.CatalogParser
Server:basexml
Instance:SOAXML
User:UnknownUser
 
-
  [BASEXML] >  [%XML] >  [CatalogParser]
Private  Storage

class %XML.CatalogParser extends %Library.RegisteredObject

An XML Catalog file parser.
This is used by the %XML.Catalog class.
Use as follows:

	Set parser = ##class(%XML.CatalogParser).%New()
	Set sc = parser.Start("\dbdtd\docbook.cat"),!
		
	While (parser.NextElement(.el)) {
		// el will contain the values for this element
		// as subscripts
		}

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
9 6


Summary

Properties
AtEnd BPos Buffer ColNo ErrorMsg
InStream LastColNo LineNo UndoBuffer

Methods
%%OIDGet %AddToSaveSet %ClassIsLatestVersion %ClassName
%ConstructClone %DispatchClassMethod %DispatchGetModified %DispatchGetProperty
%DispatchMethod %DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty
%Extends %GetParameter %IsA %IsModified
%New %NormalizeObject %ObjectModified %OriginalNamespace
%PackageName %RemoveFromSaveSet %SerializeObject %SetModified
%ValidateObject End Error NextElement
NextToken Start UndoToken


Properties

• property AtEnd as %Boolean;
• property BPos as %Integer;
• property Buffer as %String;
• property ColNo as %Integer;
• property ErrorMsg as %String;
• property InStream as %AbstractStream;
• property LastColNo as %Integer;
• property LineNo as %Integer;
• property UndoBuffer as %String;
holds the last "undone" token

Methods

• method End()
• method Error(text As %String)
Display an error message
• method NextElement(ByRef element As %String) as %Boolean
Find and return the next element in the catalog
element returns the values of the element as subscripts.
• method NextToken() as %String
Return the next token from the InputStream
• method Start(file As %String) as %Status
Begin parsing the given Catalog file
• method UndoToken(token As %String)
Put back a token into the input stream