def parse_xml(contents, name)
      hash = Hash.from_xml(contents)
      hash = hash[name] if hash.size == 1 && hash.key?(name)  # xml document could have root tag matching the file name.
      RConfig::PropertiesFile.parse_references(hash)
    end
def parse_xml(contents, name)
      hash = Hash.from_xml(contents)
      hash = hash[name] if hash.size == 1 && hash.key?(name)  # xml document could have root tag matching the file name.
      RConfig::PropertiesFile.parse_references(hash)
    end
Parses xml file and processes any references in the property values.