def parse_value_xml(property_xml)
    property_type = Helpers.get_namespaced_attribute(property_xml, 'type', 'm')
    property_null = Helpers.get_namespaced_attribute(property_xml, 'null', 'm')

    if property_type.nil? || (property_type && property_type.match(/^Edm/))
      return parse_value(property_xml.content, property_type, property_null)
    end

    complex_type_to_class(property_xml)
  end
def parse_value_xml(property_xml)
    property_type = Helpers.get_namespaced_attribute(property_xml, 'type', 'm')
    property_null = Helpers.get_namespaced_attribute(property_xml, 'null', 'm')

    if property_type.nil? || (property_type && property_type.match(/^Edm/))
      return parse_value(property_xml.content, property_type, property_null)
    end

    complex_type_to_class(property_xml)
  end
Parses a value into the proper type based on an xml property element