Functions | |
| def | validate_dtd |
| def | from_file |
| def | _from_file |
| def | to_file |
| def | _to_file |
Variables | |
| XMLSyntaxError = etree.XMLSyntaxError | |
| def grc.ParseXML._from_file | ( | xml | ) | [private] |
Recursivly parse the xml tree into nested data format.
| xml | the xml tree |
Definition at line 55 of file ParseXML.py.
| def grc.ParseXML._to_file | ( | nested_data | ) | [private] |
Recursivly parse the nested data into xml tree format.
| nested_data | the nested data |
Definition at line 83 of file ParseXML.py.
| def grc.ParseXML.from_file | ( | xml_file | ) |
Create nested data from an xml file using the from xml helper.
| xml_file | the xml file path |
Definition at line 46 of file ParseXML.py.
| def grc.ParseXML.to_file | ( | nested_data, | ||
| xml_file | ||||
| ) |
Write an xml file and use the to xml helper method to load it.
| nested_data | the nested data | |
| xml_file | the xml file path |
Definition at line 74 of file ParseXML.py.
| def grc.ParseXML.validate_dtd | ( | xml_file, | ||
dtd_file = None | ||||
| ) |
Validate an xml file against its dtd.
| xml_file | the xml file | |
| dtd_file | the optional dtd file |
| Exception | validation fails |
Definition at line 28 of file ParseXML.py.
grc::ParseXML.XMLSyntaxError = etree.XMLSyntaxError [static] |
Definition at line 26 of file ParseXML.py.
1.5.4