public final class XmlUtils extends Object
| Constructor and Description |
|---|
XmlUtils() |
| Modifier and Type | Method and Description |
|---|---|
static List<Element> |
getChildElements(Element parent) |
static List<Element> |
getChildElements(Element parent,
String tagName) |
static Document |
getDocument(InputSource xml,
InputStream xsd) |
static Document |
getDocument(String payload) |
static Element |
getRootElementFromString(String payload) |
static void |
validateXml(InputStream xml,
InputStream xsd) |
static void |
validateXml(Node root,
InputStream xsd) |
public static Document getDocument(String payload) throws ParserConfigurationException, SAXException, IOException
public static Document getDocument(InputSource xml, InputStream xsd) throws ParserConfigurationException, SAXException, IOException
public static Element getRootElementFromString(String payload) throws ParserConfigurationException, SAXException, IOException
public static void validateXml(InputStream xml, InputStream xsd) throws SAXException, IOException, ParserConfigurationException
public static void validateXml(Node root, InputStream xsd) throws SAXException, IOException
SAXExceptionIOExceptionCopyright © 2017. All Rights Reserved.