:py:mod:`hazimp.xml_interface` ============================== .. py:module:: hazimp.xml_interface .. autoapi-nested-parse:: Title: xml_interface.py Author: Peter Row Description: Class to access XML information Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: hazimp.xml_interface.XmlLayer .. py:class:: XmlLayer(node=None, string=None, filename=None) Bases: :py:obj:`object` Simplified XML parsing. .. py:attribute:: attributes .. py:attribute:: array .. py:method:: parse_string(self, string) Parse a string Args: string: String to parse. .. py:method:: parse_file(self, filename) Parse an xml file Args: filename: File to parse. .. py:method:: __getitem__(self, item_name) .. py:method:: __attributes(self) Returns: A dictionary of the attributes. .. py:method:: __array(self) Converts info into a numpy array. Returns: A numpy array. .. py:method:: unlink(self) unlink to cleanup unneeded objects.