'Converts xml response to service bus namespace availability
The xml format:
<?xml version="1.0" encoding="utf-8"?>
<entry xmlns="http://www.w3.org/2005/Atom">
<id>uuid:9fc7c652-1856-47ab-8d74-cd31502ea8e6;id=3683292</id>
<title type="text"></title>
<updated>2013-04-16T03:03:37Z</updated>
<content type="application/xml">
<NamespaceAvailability
xmlns="http://schemas.microsoft.com/netservices/2010/10/servicebus/connect"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Result>false</Result>
</NamespaceAvailability>
</content>
</entry>'

@staticmethod
def xml_to_namespace_availability(xmlstr):

    xmldoc = minidom.parseString(xmlstr)
    availability = AvailabilityResponse()
    for desc in _MinidomXmlToObject.get_children_from_path(xmldoc, 'entry', 'content', 'NamespaceAvailability'):
        node_value = _MinidomXmlToObject.get_first_child_node_value(desc, 'Result')
        if (node_value is not None):
            availability.result = _parse_bool(node_value)
    return availability
