class XMLParser(object) This class is the parser for the XML files. It
is based on dictionary interface to the GUI. Every key in a dictionary is
used as a tag name in the XML file. The value is either the tag content
or (when a dictionary) the next hierarchical level of the XML file.
|
|
|
|
|
countTopLevelTags()
returns number of toplevel items in XML file |
source code
|
|
|
writeNewData(dict)
- writes the data from dict into the XML File
- Attention: XML File must exist and have a root instance. |
source code
|
|
|
createNewXML(path,
string)
creates a new XMl file with the given path an adds the root instance
named by string |
source code
|
|
|
getRootName()
return the name of the root instance in the XML file |
source code
|
|
|
getCharacteristic(data,
algorithm,
bench,
cost_criteria,
chararcteristic)
- should be used with mean_values XML only !! --> see GUI for information... |
source code
|
|
|
__findTopLevelItemName(self,
node)
finds the element and returns its tag name |
source code
|
|
|
|
|
__newFromOldNode(node,
parent)
builds a new node from the given node including its child nodes and
adds it as a child to parent node recurrent function ! |
source code
|
|
|
__getTag(node,
parent)
both parameter are node instances of the XML file |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|