Home | Trees | Indices | Help |
---|
|
object --+ | SimpleXmlApi
The main API class, comprising a map of attributes to dotted path names.
Accessing an attribute that has been mapped to a dotted name will return the text value of that node/attribute. If an attribute is passed that isn't in the map, it's passed off to the DotXMLDoc instance, so that the document can be walked manually.
May be subclassed, overriding _map
, to provide custom
APIs for known XML structures.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
str |
|
||
Inherited from |
|
|||
_map =
|
|||
_doc = None
|
|
|||
Inherited from |
|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
Add a new attribute - dotted name mapping to the instance's map registry.
|
Parse an XML document and set it as this API's target.
|
Update the attribute registry with one or more mappings. Will not remove attributes that currently exist.
|
Remove an attribute mapping from the registry.
|
Traverse a dotted path against the XML document in memory and return its text value.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Sat Aug 23 09:55:45 2008 | http://epydoc.sourceforge.net |