%XML.SAX.Utils.Recorder
class %XML.SAX.Utils.Recorder extends %XML.SAX.ContentHandler
Property Inventory
Method Inventory
- characters()
- comment()
- endCDATA()
- endDTD()
- endDocument()
- endElement()
- endEntity()
- endPrefixMapping()
- error()
- fatalError()
- ignorableWhitespace()
- processingInstruction()
- skippedEntity()
- startCDATA()
- startDTD()
- startDocument()
- startElement()
- startEntity()
- startPrefixMapping()
- warning()
Properties
Methods
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.
The Parser will call this method to report each occurrence of a comment in the XML document.
The application must not attempt to read from the array outside of the specified range.
- chars - The characters from the XML document.
- length - The number of characters to read from the array.
The SAX parser will invoke this method at the end of each CDATA parsed.
Exceptions thrown: SAXException - Any SAX exception, possibly wrapping another exception. /The SAX parser will invoke this method at the end of the DTD
Exceptions thrown: SAXException - Any SAX exception, possibly wrapping another exception. /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 finalising a tree or closing an output file).
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 asscioated namespace for this element
- localname - The local part of the element name
- qname - The QName of this element
The SAX parser will invoke this method at the end of an entity
- name - The name of the entity that is ending.
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
The default implementation does nothing. Application writers may override this method in a subclass to take specific actions for each error, such as inserting the message in a log file or printing it to the console.
- error - The error information encoded as a string
The default implementation throws an exeption Application writers may override this method in a subclass if they need to take specific actions for each fatal error (such as collecting all of the errors into a single report): in any case, the application must stop all regular processing when this method is invoked, since the document is no longer reliable, and the parser may no longer report parsing events.
- fatalerror The error information encoded as a string
By default, do nothing. Application writers may override this method to take specific actions for each chunk of ignorable whitespace (such as adding data to a node or buffer, or printing it to a file).
- chars - The whitespace characters.
- length - The number of characters to use from the character array.
Application writers may override this method in a subclass if they need to take specific actions for processing instruction.
- target - The target of the processing instruction
- data - The associated data
The parser will invoke this method once for each entity skipped. All processors may skip external entities, depending on the values of the features:
http://xml.org/sax/features/external-general-entities
http://xml.org/sax/features/external-parameter-entities
Introduced with SAX2
- name - The name of the skipped entity. If it is a parameter entity, the name will begin with %, and if it is the external DTD subset, it will be the string [dtd].
The SAX parser will invoke this method at the start of each CDATA parsed.
Exceptions thrown: SAXException - Any SAX exception, possibly wrapping another exception.The SAX parser will invoke this method at the start of the DTD
- name - The document type name.
- publicId - The declared public identifier for the external DTD subset, or null if none was declared.
- systemId - The declared system identifier for the external DTD subset, or null if none was declared.
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)
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).
This method varies from the SAX2 published specification in that the 4th parameter attributes is not implemented, rather multiple calls will be made to the elementAttribute method instead
- uri - The URI of the asscioated namespace for this element
- localname - The local part of the element name
- qname - The QName of this element
The SAX parser will invoke this method at the start of an entity
- name - The name of the entity that is starting.
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.
The default implementation does nothing. Application writers may override this method in a subclass to take specific actions for each warning, such as inserting the message in a log file or printing it to the console.
- warning - The warning information encoded as a string
Inherited Members
Inherited Methods
- %AddToSaveSet()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Extends()
- %GetParameter()
- %IsA()
- %IsModified()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OriginalNamespace()
- %PackageName()
- %RemoveFromSaveSet()
- %SerializeObject()
- %SetModified()
- %ValidateObject()
- LocatePosition()
- Mask()
- OnPostParse()
- PopHandler()
- PushHandler()