public final class XmlUtils extends Object
| 构造器和说明 |
|---|
XmlUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
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
Copyright © 2018. All Rights Reserved.