'Take XML object containing a network description and convert to
OpenNebulaNetwork object.
Take XML representation containing a network description and
convert to OpenNebulaNetwork object.
:return: The newly extracted :class:`OpenNebulaNetwork`.
:rtype:  :class:`OpenNebulaNetwork`'

def _to_network(self, element):

    return OpenNebulaNetwork(id=element.findtext('ID'), name=element.findtext('NAME'), address=element.findtext('ADDRESS'), size=element.findtext('SIZE'), driver=self.connection.driver, extra={'public': element.findtext('PUBLIC')})
