Home | Trees | Indices | Help |
|
---|
|
Provides general XML-related functionality.
What I'm trying to do here is abstract much of the functionality that directly accesses the DOM tree. This is not so much to "protect" the other code from the DOM, but to standardize the way it's used. It will also help extension authors write code that easily looks more like the rest of Cedar Backup.
Author: Kenneth J. Pronovici <pronovic@ieee.org>
|
|||
Serializer XML serializer class. |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
Creates a DOM tree based on reading an XML string.
|
Creates a DOM tree used for writing an XML document.
|
Serializes a DOM tree and returns the result in a string.
|
Returns a list of nodes with a given name immediately beneath the parent. By "immediately beneath" the parent, we mean from among nodes that are direct children of the passed-in parent node. Underneath, we use the Python
|
Returns the first child with a given name immediately beneath the parent. By "immediately beneath" the parent, we mean from among nodes that are direct children of the passed-in parent node.
|
Returns a list of the string contents associated with nodes with a given name immediately beneath the parent. By "immediately beneath" the parent, we mean from among nodes that are direct children of the passed-in parent node. First, we find all of the nodes using readChildren, and then we retrieve the "string
contents" of each of those nodes. The returned list has one entry
per matching node. We assume that string contents of a given node belong
to the first
|
Returns string contents of the first child with a given name immediately beneath the parent. By "immediately beneath" the parent, we mean from among
nodes that are direct children of the passed-in parent node. We assume
that string contents of a given node belong to the first
|
Returns integer contents of the first child with a given name immediately beneath the parent. By "immediately beneath" the parent, we mean from among nodes that are direct children of the passed-in parent node.
|
Returns boolean contents of the first child with a given name immediately beneath the parent. By "immediately beneath" the parent, we mean from among nodes that are direct children of the passed-in parent node. The string value of the node must be one of the values in VALID_BOOLEAN_VALUES.
|
Adds a container node as the next child of a parent node.
|
Adds a text node as the next child of a parent, to contain a string. If the
|
Adds a text node as the next child of a parent, to contain an integer. If the The integer will be converted to a string using "%d". The result will be added to the document via addStringNode.
|
Adds a text node as the next child of a parent, to contain a boolean. If the Boolean
|
Returns long integer contents of the first child with a given name immediately beneath the parent. By "immediately beneath" the parent, we mean from among nodes that are direct children of the passed-in parent node.
|
Returns float contents of the first child with a given name immediately beneath the parent. By "immediately beneath" the parent, we mean from among nodes that are direct children of the passed-in parent node.
|
Adds a text node as the next child of a parent, to contain a long integer. If the The integer will be converted to a string using "%d". The result will be added to the document via addStringNode.
|
Copyright: This code, prior to customization, was part of the PyXML codebase, and before that was part of the 4DOM suite developed by Fourthought, Inc. It its original form, it was attributed to Martin v. Löwis and was Copyright (c) 2000 Fourthought Inc, USA; All Rights Reserved. |
Handles normalization and some intelligence about quoting. Copyright: This code, prior to customization, was part of the PyXML codebase, and before that was part of the 4DOM suite developed by Fourthought, Inc. It its original form, it was Copyright (c) 2000 Fourthought Inc, USA; All Rights Reserved. |
Copyright: This code, prior to customization, was part of the PyXML codebase, and before that was part of the 4DOM suite developed by Fourthought, Inc. It its original form, it was Copyright (c) 2000 Fourthought Inc, USA; All Rights Reserved. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Jul 29 18:03:34 2015 | http://epydoc.sourceforge.net |