%XML.Catalog
Class %XML.Catalog Extends (%Persistent, %XML.Adaptor) [ Inheritance = right, Not ProcedureBlock, SqlTableName = XCatalog, System = 3 ]
This class represents an XML catalog. It defines a database of associations between PUBLIC document identifiers and the URLs for their DTD and/or schema files. This class is used by the XML.CatalogResolver class when it resolves DTD and Schema references.
Properties
Keyword
Property Keyword As %String(MAXLEN = 20) [ Required ];
The Keyword for a Catalog entry. Currently only PUBLIC is supported
PublicId
Property PublicId As %String(MAXLEN = 200) [ Required ];
The Public Identifier string for a Catalog entry.
URL
Property URL As %String(MAXLEN = 200) [ Required ];
The URL string for a Catalog entry.
Methods
Reset
ClassMethod Reset()
Clear the contents of the catalog.
IsEmpty
ClassMethod IsEmpty() As %Boolean
Test if the Catalog is empty
LoadDefault
ClassMethod LoadDefault() As %Status
Reset and load the default catalog.
Load
ClassMethod Load(filename As %String) As %Status
Load a Catalog File
ResolvePublic
ClassMethod ResolvePublic(publicId As %String) As %AbstractStream
Return an open Stream object that contains the DTD for a given Public Identifier.
The caller is responsible for closing the stream.
FindURL
ClassMethod FindURL(publicId As %String) As %String
Find the URL for a given Public Identifier.
DisplayCatalog
ClassMethod DisplayCatalog()
Display the contents of the XML Catalog to the console.