summaryrefslogtreecommitdiffstats
path: root/server/xmlparser.py
Commit message (Collapse)AuthorAgeFilesLines
* Added better error handling when reading XML files and returning empty tag ↵David Sommerseth2009-08-051-2/+5
| | | | values as None
* xmlparser - did not try to take value out of a listDavid Sommerseth2009-07-301-1/+1
|
* xmlparser: Don't include the <value/> tag when processing xmlblobsDavid Sommerseth2009-07-301-1/+1
|
* Added new column: rtevalruns.report_filename.David Sommerseth2009-07-301-2/+3
| | | | Corrected also some typos
* xmlparser: Correctly format rterid and syskey arguments, added support for ↵David Sommerseth2009-07-301-2/+12
| | | | /sqlite/@key attribute
* Improved xmlparser.py/XMLSQLparser class to handle libxml2.xmlDoc and ↵David Sommerseth2009-07-291-3/+22
| | | | | | | libxml2.xmlNode Valid input for both the XSLT and XML input parameters in the constructor now can parse libxml2.xmlDoc, libxml2.xmlNode or a string containing a filename
* Implemented Python part of XML -> SQL parserDavid Sommerseth2009-07-291-56/+65
| | | | | | | | | | | | | | | | | | | | This module will prepare a dictionary which can be used by a Database object for quering a database. class XMLSQLparser(XSLT, XMLdata) def GetSQLdata(table, rterid=None, syskey=None) The XSLT is a filename to a xmlparser.xsl file, which defines the mapping of XML fields into SQL tables and fields. The XMLdata parameter is a filename to the XML data being processed. Future version will support both filename and xmlDoc. The XMLSQLparser::GetSQLdata(...) function will parse the XML data into a Python dictionary containing all needed field names, values and table name which is useable by a Database object. The table parameter is required, and a matching table name must be defined in the XSLT template. The rterid and syskey paramters are optional, but some table definitions might need them. For more info, look into the xmlparser.xsl file
* Began implementing XML parser for rteval reportsDavid Sommerseth2009-07-241-0/+104