hazimp.xml_interface

Title: xml_interface.py

Author: Peter Row

Description: Class to access XML information

Module Contents

Classes

XmlLayer

Simplified XML parsing.

class hazimp.xml_interface.XmlLayer(node=None, string=None, filename=None)

Bases: object

Simplified XML parsing.

attributes
array
parse_string(self, string)

Parse a string

Args:

string: String to parse.

parse_file(self, filename)

Parse an xml file

Args:

filename: File to parse.

__getitem__(self, item_name)
__attributes(self)
Returns:

A dictionary of the attributes.

__array(self)

Converts info into a numpy array.

Returns:

A numpy array.

unlink to cleanup unneeded objects.