HTTP Server for Tux Droid
util.misc.XMLSerializer Namespace Reference

Functions

def toXML (structure, stylesheetFile=None)
 
def fromXML (xmlFile)
 
def __insertLeaf (parentNode, textID, textValue)
 
def __insertNode (parentNode, nodeID)
 
def __structToXML (struct, xslPath=None)
 
def __xmlToStruct (xml_path)
 

Variables

 __author__
 
 __date__
 
 __version__
 
 __licence__
 

Function Documentation

◆ __insertLeaf()

def util.misc.XMLSerializer.__insertLeaf (   parentNode,
  textID,
  textValue 
)
private
Insert a leaf in a xml structure.

◆ __insertNode()

def util.misc.XMLSerializer.__insertNode (   parentNode,
  nodeID 
)
private
Insert a node in a xml structure

◆ __structToXML()

def util.misc.XMLSerializer.__structToXML (   struct,
  xslPath = None 
)
private
Write a xml file from a dict structure.

◆ __xmlToStruct()

def util.misc.XMLSerializer.__xmlToStruct (   xml_path)
private
Get a dict structure from a xml file.

◆ fromXML()

def util.misc.XMLSerializer.fromXML (   xmlFile)
Read the content of a XML file to a python structure.
@param xmlFile: XML file to read.
@return: A python dictionary or None.

◆ toXML()

def util.misc.XMLSerializer.toXML (   structure,
  stylesheetFile = None 
)
Create the content of a XML file from a python structure.
@param structure: Python structure to write.
@param stylesheetFile: Stylesheet file path to include in the xml file.
                       (Default None)
@return: The success of the XML file write.

Variable Documentation

◆ __author__

util.misc.XMLSerializer.__author__
private

◆ __date__

util.misc.XMLSerializer.__date__
private

◆ __licence__

util.misc.XMLSerializer.__licence__
private

◆ __version__

util.misc.XMLSerializer.__version__
private