'Take XML object containing a network description and convert to
OpenNebulaNetwork object.
Take XML representation containing a network description and
convert to OpenNebulaNetwork object.
:rtype:  :class:`OpenNebulaNetwork`
:return: The newly extracted :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)
