public static Document createAndUpgradeDocumentFromXml(String xmlContent)
      throws SAXException, ParserConfigurationException, IOException, XPathExpressionException {
    Document doc = XmlUtils.createDocumentFromXml(xmlContent);
    if (!CacheXml.VERSION_LATEST.equals(XmlUtils.getAttribute(doc.getDocumentElement(),
        CacheXml.VERSION, CacheXml.GEODE_NAMESPACE))) {
      doc = upgradeSchema(doc, CacheXml.GEODE_NAMESPACE, CacheXml.LATEST_SCHEMA_LOCATION,
          CacheXml.VERSION_LATEST);
    }
    return doc;
  }
Create a {@link Document} using {@link XmlUtils#createDocumentFromXml(String)} and if the
version attribute is not equal to the current version then update the XML to the current schema
and return the document.

@param xmlContent XML content to load and upgrade.
@return {@link Document} from xmlContent.
@since GemFire 8.1
geode-core/src/main/java/org/apache/geode/management/internal/configuration/utils/XmlUtils.java