Package grc.ParseXML


Functions

def validate_dtd
def from_file
def _from_file
def to_file
def _to_file

Variables

 XMLSyntaxError = etree.XMLSyntaxError


Function Documentation

def grc.ParseXML._from_file (   xml  )  [private]

Recursivly parse the xml tree into nested data format.

Parameters:
xml the xml tree
Returns:
the nested data

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.

Parameters:
nested_data the nested data
Returns:
the xml tree filled with child nodes

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.

Parameters:
xml_file the xml file path
Returns:
the nested data

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.

Parameters:
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.

Parameters:
xml_file the xml file
dtd_file the optional dtd file
Exceptions:
Exception validation fails

Definition at line 28 of file ParseXML.py.


Variable Documentation

grc::ParseXML.XMLSyntaxError = etree.XMLSyntaxError [static]

Definition at line 26 of file ParseXML.py.


Generated on Sat Aug 23 02:00:12 2008 for GNU Radio Companion by  doxygen 1.5.4