diff -r 7685cec9fd3c -r f2ddfa555b0f doc/api/python/log2xml.ContentWriter-class.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/python/log2xml.ContentWriter-class.html Fri Sep 11 11:54:49 2009 +0100 @@ -0,0 +1,343 @@ + + + + + log2xml.ContentWriter + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + Module log2xml :: + Class ContentWriter + + + + + + +
[hide private]
[frames] | no frames]
+
+ +

Class ContentWriter

source code

+
+xml.sax.handler.ContentHandler --+
+                                 |
+                                ContentWriter
+
+ +
+SAX Content writer. Parse and write an XML file.

+ + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
Instance Methods[hide private]
+
+   + + + + + + +
__init__(self, + os, + indent="") + source code + +
+ +
+   + + + + + + +
startElement(self, + name, + attrs)
+ Signals the start of an element in non-namespace mode.
+ source code + +
+ +
+   + + + + + + +
endElement(self, + name)
+ Signals the end of an element in non-namespace mode.
+ source code + +
+ +
+   + + + + + + +
characters(self, + content)
+ Receive notification of character data.
+ source code + +
+ +
+

Inherited from xml.sax.handler.ContentHandler: + endDocument, + endElementNS, + endPrefixMapping, + ignorableWhitespace, + processingInstruction, + setDocumentLocator, + skippedEntity, + startDocument, + startElementNS, + startPrefixMapping +

+
+ + + + + + +
+ + + + + +
Method Details[hide private]
+
+ +
+ +
+ + +
+

__init__(self, + os, + indent="") +
(Constructor) +

+
source code  +
+ + +
+
Overrides: + xml.sax.handler.ContentHandler.__init__ +
+
+
+
+ +
+ +
+ + +
+

startElement(self, + name, + attrs) +

+
source code  +
+ +

Signals the start of an element in non-namespace mode.

+

The name parameter contains the raw XML 1.0 name of the +element type as a string and the attrs parameter holds an +instance of the Attributes class containing the attributes of +the element.

+
+
Overrides: + xml.sax.handler.ContentHandler.startElement +
(inherited documentation)
+ +
+
+
+ +
+ +
+ + +
+

endElement(self, + name) +

+
source code  +
+ +

Signals the end of an element in non-namespace mode.

+

The name parameter contains the name of the element type, just +as with the startElement event.

+
+
Overrides: + xml.sax.handler.ContentHandler.endElement +
(inherited documentation)
+ +
+
+
+ +
+ +
+ + +
+

characters(self, + content) +

+
source code  +
+ +

Receive notification of character data.

+

The Parser will call this method to report each chunk of +character data. SAX parsers may return all contiguous +character data in a single chunk, or they may split it into +several chunks; however, all of the characters in any single +event must come from the same external entity so that the +Locator provides useful information.

+
+
Overrides: + xml.sax.handler.ContentHandler.characters +
(inherited documentation)
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + +