java.lang.Object
de.hybris.platform.integrationservices.util.XmlUtils

public class XmlUtils extends Object
  • Method Details

    • getXmlDocument

      public static Document getXmlDocument(String xmlBody)
      Parses XML contained in a String
      Parameters:
      xmlBody - an XML content.
      Returns:
      a parsed document representing xmlBody.
      Throws:
      IllegalArgumentException - when the xmlBody does not contain a well formed XML.
    • getXmlDocument

      public static Document getXmlDocument(InputStream in)
      Parses XML contained in the input stream
      Parameters:
      in - an input stream to read XML content from.
      Returns:
      a parsed document representing the XML in the input stream.
      Throws:
      IllegalArgumentException - when the input stream failed to read or does not contain a well formed XML.