| Trees | Indices | Help |
|
|---|
|
|
Handy XML processing utility functions.
Various XML processing utilities, using minidom, that are used in various places throughout the code.
Author: Mark Granroth-Wilding <mark.granroth-wilding@ed.ac.uk>
|
|||
| XmlReadError | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
__package__ =
|
|||
|
|||
Converts a minidom NamedNodeMap that represents the attributes of a node into a dictionary. The keys are attribute names. The values are the attributes' string values. |
Minidom node lists include entries for carriage returns, for some reason. This function removes these from a list. |
Returns an element that is a child of the given node and that has the tag name given. This method is used where it is assumed that one such tag exists. If there is none, an exception is raised. If there is more than one, the first is returned.
|
Checks for the existence of the named attributes on the given node and raises an exception if they're not there. Returns a tuple of their values if they're all found. |
Checks for the existence of the named attribute on the given node and raises an exception if it's not there. Returns its value if it is there. |
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Nov 26 16:04:56 2012 | http://epydoc.sourceforge.net |