|
Class Reference
%XML.Utils.SchemaHandler
|
|
![]() |
|||
Private Storage |
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 Caché. 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 | ||||
---|---|---|---|---|
ElStack | InSchema | Included | Level | PrefixMap |
Reader | SourceName | TargetNS | Tree |
|
Stack of parsed elements.
Each entry contains: $LB(local, elno)
Are we in a schema?
included or imported schema being processed
Stack level
List of namespace prefixes and their mappings
PrefixMap(prefix) = uri
PrefixMap(prefix,#) = uri (for "stacked" prefixes)
TheSchemaReader that invoked us.
The file we are parsing
current target namespace for this schema
Integer tree id within ^CacheTemp
|
Parse an XML Schema file
Parse an XML Schema stream
Parse an XML Schema from a URL
Converts list of attrs into an array keyed by attr name
Receive notification of character data inside an element.By default, do nothing. Application writers may override this method to take specific actions for each chunk of character data (such as adding the data to a node or buffer, or printing it to a file).
- chars: The characters.
- length: The number of characters to use from the character array.
Receive notification of the end of an element.By default, do nothing. Application writers may override this method in a subclass to take specific actions at the end of each element (such as finalising a tree node or writing output to a file).
- uri: The URI of the associated namespace for this element
- localname: The local part of the element name
- qname: The QName of this element
Receive notification of the end of an namespace prefix mapping.By default, do nothing. Application writers may override this method in a subclass to take specific actions at the end of each namespace prefix mapping.
- prefix: The namespace prefix used
Receive notification of the beginning of the document.By default, do nothing. Application writers may override this method in a subclass to take specific actions at the beginning of a document (such as allocating the root node of a tree or creating an output file)
Receive notification of the start of an element.By default, do nothing. Application writers may override this method in a subclass to take specific actions at the start of each element (such as allocating a new tree node or writin output to a file).
- uri: The URI of the associated namespace for this element
- localname: the local part of the element name
- qname: the QName of this element
- attrs: a list in $List format consisting of a repeating group of attributes.
The format of the repeating group is as follows:
- +0 - uri: The URI of the associated namespace for this attribute
- +1 - localname: The local part of the name of this attribute
- +2 - qname: The QName of this attribute
- +3 - type: The type of this attribute ("CDATA", NMTOKEN", "ENTITY", etc.)
- +4 - value: The value of this attribute
Receive notification of the start of an namespace prefix mapping.By default, do nothing. Application writers may override this method in a subclass to take specific actions at the start of each namespace prefix mapping.
- prefix: The namespace prefix used
- uri: The namespace URI used.