Home | Trees | Indices | Help |
---|
|
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
__dom_implementation = xml.dom.minidom.getDOMImplementation()
|
|||
__hyphen_regex = re.compile(r'
|
|||
__package__ =
|
|
Return a public ID for the DTD with the given 'name'. 'name' -- The name of the DTD. returns -- A public ID for the DTD. |
Return a system ID for the DTD with the given 'name'. 'name' -- The name of the DTD, as a relative UNIX path. returns -- A URL for the DTD. |
Return a DOM document loaded from the XML file object 'file'. 'file' -- A file object, opened for reading. returns -- The DOM document contained in 'file'. This function closes 'file', whether or not reading the document was successful. |
Return the text contained in DOM 'node'. 'node' -- A DOM element node. prerequisites -- 'node' is an element node with exactly one child, which is a text node. |
Return a predicate function for finding element nodes by tag. returns -- A predicate function that takes a node as its argument and returns true if the node is an element node whose tag is 'child_tag'. |
Return the child element node of 'node' whose tag is 'child_tag'. 'node' -- A DOM node. It must have exactly one element child with the tag 'child_tag'. 'child_tag' -- The desired element tag. returns -- A child DOM node of 'node'. raises -- 'KeyError' if 'node' has no element child with tag 'child_tag', or more than one.. |
Return the text contained in a child of DOM 'node'. 'child_tag' -- The tag of the child node whose text is to be retrieved. 'default' -- If 'node' has no child element with tag 'child_tag', returns 'default', unless 'default' is 'None'. raises -- 'KeyError' if 'default' is 'None' and 'node' has no child element with tag 'child_tag'. |
Return a sequence of text contents of children. 'node' -- A DOM node. returns -- The list containing all child nodes of 'node' which have tag 'child_tag'. Each child must have exactly one child of its own, which must be a text node. |
Return a DOM element containing a single text node. 'document' -- The containing DOM document. 'tag' -- The element tag. 'text' -- The text contents of the text node. |
Create a DOM document. 'public_id' -- The (partial) public ID for the DTD. 'document_element_tag' -- The tag of the main document element. returns -- A DOM document node. |
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Dec 23 12:30:40 2011 | http://epydoc.sourceforge.net |