Class XmlUtils
java.lang.Object
de.hybris.platform.integrationservices.util.XmlUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentParses XML contained in the input streamstatic DocumentgetXmlDocument(String xmlBody) Parses XML contained in aString
-
Method Details
-
getXmlDocument
Parses XML contained in aString- Parameters:
xmlBody- an XML content.- Returns:
- a parsed document representing
xmlBody. - Throws:
IllegalArgumentException- when thexmlBodydoes not contain a well formed XML.
-
getXmlDocument
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.
-