'Converts xml response to service bus region
The xml format for region:
<entry>
<id>uuid:157c311f-081f-4b4a-a0ba-a8f990ffd2a3;id=1756759</id>
<title type="text"></title>
<updated>2013-04-10T18:25:29Z</updated>
<content type="application/xml">
<RegionCodeDescription
xmlns="http://schemas.microsoft.com/netservices/2010/10/servicebus/connect"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>East Asia</Code>
<FullName>East Asia</FullName>
</RegionCodeDescription>
</content>
</entry>'

@staticmethod
def xml_to_region(xmlstr):

    xmldoc = minidom.parseString(xmlstr)
    region = ServiceBusRegion()
    for desc in _MinidomXmlToObject.get_children_from_path(xmldoc, 'entry', 'content', 'RegionCodeDescription'):
        node_value = _MinidomXmlToObject.get_first_child_node_value(desc, 'Code')
        if (node_value is not None):
            region.code = node_value
        node_value = _MinidomXmlToObject.get_first_child_node_value(desc, 'FullName')
        if (node_value is not None):
            region.fullname = node_value
    return region
