| Home | Trees | Index | Help |
|---|
ContentHandler --+
|
xmlHandler
xmlProcessHandler| Method Summary | |
|---|---|
__init__(self)
| |
_object_created_(self,
obj)
| |
Called by the internal SAX parser whenever text (not part of a tag) is encountered. | |
comment(self,
text)
| |
endCDATA(self)
| |
endDTD(self)
| |
Called by the internal SAX parser whenever an ending XML tag/element is encountered. | |
endEntity(self,
name)
| |
Perform a final validation of the tags. | |
Return the root node of the object tree | |
Return sequence of comment tags given before the root node | |
Update some statistics about the elements in use. | |
startCDATA(self)
| |
startDTD(self,
name,
public_id,
system_id)
| |
Signals the start of an element in namespace mode. | |
startEntity(self,
name)
| |
| Inherited from ContentHandler | |
Receive notification of the end of a document. | |
Signals the end of an element in non-namespace mode. | |
End the scope of a prefix-URI mapping. | |
Receive notification of ignorable whitespace in element content. | |
Receive notification of a processing instruction. | |
Called by the parser to give the application a locator for locating the origin of document events. | |
Receive notification of a skipped entity. | |
Receive notification of the beginning of a document. | |
Signals the start of an element in non-namespace mode. | |
Begin the scope of a prefix-URI Namespace mapping. | |
| Class Variable Summary | |
|---|---|
NoneType |
default_namespace: The default namespace (which would be dropped), i.e. |
bool |
ignore_unknown_namespaces: If set to True, any elements that have an unknown namespace will be
dropped. |
dict |
xmlElements = {}
|
NoneType |
xmlMasqueradeNamespaceElements = None |
bool |
xmlNamespaceAttributesAsPrefixes = False
|
| Method Details |
|---|
__init__(self)
|
_object_created_(self, obj) |
characters(self, content)Called by the internal SAX parser whenever text (not part of a tag) is encountered. |
comment(self, text) |
endCDATA(self) |
endDTD(self) |
endElementNS(self, name, qname)Called by the internal SAX parser whenever an ending XML tag/element is encountered. |
endEntity(self, name) |
finalValidation(self)Perform a final validation of the tags. Checks if all required tags are really defined (via tag-counter dictionary). |
getRoot(self)
|
getRootComments(self)
|
initValidation(self)Update some statistics about the elements in use. All 'required' elements will be added to the sequence _requiredTags and all elements having a True value set for 'SingleInstance' will be added to the sequence _singleInstanceTags. Additionally the tag-counter dictionary will be reset. |
startCDATA(self) |
startDTD(self, name, public_id, system_id) |
startElementNS(self, name, qname, attrs)Signals the start of an element in namespace mode. The name parameter contains the name of the element type as a (uri, localname) tuple, the qname parameter the raw XML 1.0 name used in the source document, and the attrs parameter holds an instance of the Attributes class containing the attributes of the element. The uri part of the name tuple is None for elements which have no namespace. |
startEntity(self, name) |
| Class Variable Details |
|---|
default_namespaceThe default namespace (which would be dropped), i.e. if the default namespace is 'Foo', then <Foo:test> would just be processed as <test>.
|
ignore_unknown_namespacesIf set to True, any elements that have an unknown namespace will be dropped.
|
xmlElements
|
xmlMasqueradeNamespaceElements
|
xmlNamespaceAttributesAsPrefixes
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Wed Jan 7 23:03:21 2009 | http://epydoc.sf.net |