Copyright 2005 Fourthought, Inc. (USA). Detailed license and copyright information: http://4suite.org/COPYRIGHT Project home, documentation, distributions: http://4suite.org/
Classes:
|
Globals:
|
Writes an attribute to the stream as a space followed by the name, '=', and quote-delimited value. It is the caller's responsibility to ensure that this is called in the correct context, if well-formed output is desired. The delimiter is always a quote ("), as required by c14n The elementName arguments are not used by default, but may be used by subclasses.
No CDATA sections in c14n, so just commute to the text event
Writes a comment to the stream.
Writes the closing tag for an element to the stream. The namespaceUri argument is ignored in this class.
Writes a processing instruction to the stream.
Writes part of an element's start-tag or empty-element tag to the stream, and closes the start tag of the previous element, if one remained open. Writes the xmlns attributes for the given dictionary of namespaces, and invokes attribute() as neeeded to write the given dictionary of attributes. The namespaceUri argument is ignored in this class.
Writes character data to the stream. All characters should be suitable for encoding (UTF-8 only); "&" and "<" are escaped as "&" and "<"; and ">" is escaped as ">" if it is preceded by "]]". disableEscaping is ignored.
The methods in this base class attempt to emit a well-formed parsed general entity conformant to XML 1.0 syntax, with no extra whitespace added for visual formatting. Subclasses may emit documents conformant to other syntax specifications or with additional whitespace for indenting. The degree of well-formedness of the output depends on the data supplied in the event calls; no checks are done for conditions that would result in syntax errors, such as two attributes with the same name, "--" in a comment, etc. However, attribute() will do nothing if the previous event was not startElement(), thus preventing spurious attribute serializations.
Writes an attribute to the stream as a space followed by the name, '=', and quote-delimited value. It is the caller's responsibility to ensure that this is called in the correct context, if well-formed output is desired. Preference is given to quotes (") around attribute values, in accordance with the DomWriter interface in DOM Level 3 Load and Save (25 July 2002 WD), although a value that contains quotes but no apostrophes will be delimited by apostrophes (') instead. The elementName arguments are not used by default, but may be used by subclasses.
Writes character data to the stream as a CDATA section.
Writes a comment to the stream.
Writes a document type declaration to the stream.
Writes any necessary final output to the stream.
Writes the closing tag for an element to the stream, or, if the element had no content, finishes writing the empty element tag. The namespaceUri argument is ignored in this class.
Writes a processing instruction to the stream.
Writes XML declaration or text declaration to the stream.
Writes part of an element's start-tag or empty-element tag to the stream, and closes the start tag of the previous element, if one remained open. Writes the xmlns attributes for the given dictionary of namespaces, and invokes attribute() as neeeded to write the given dictionary of attributes. The namespaceUri argument is ignored in this class.
Writes character data to the stream. If the disableEscaping flag is not set, then unencodable characters are replaced with numeric character references; "&" and "<" are escaped as "&" and "<"; and ">" is escaped as ">" if it is preceded by "]]". If the disableEscaping flag is set, then the characters are written to the stream with no escaping of any kind, which will result in an exception if there are unencodable characters.