public final class XmlUtils extends Object
| 构造器和说明 |
|---|
XmlUtils() |
public static Document newDocument() throws AlipayApiException
public static Document getDocument(File file) throws AlipayApiException
public static Document getDocument(InputStream in) throws AlipayApiException
public static Element createRootElement(String tagName) throws AlipayApiException
public static Element getRootElementFromStream(InputStream in) throws AlipayApiException
public static Element getRootElementFromFile(File file) throws AlipayApiException
public static Element getRootElementFromString(String payload) throws AlipayApiException
public static Element appendCDATAElement(Element parent, String tagName, String value)
public static String childNodeToString(Node node) throws AlipayApiException
public static String nodeToString(Node node) throws AlipayApiException
public static String xmlToString(File file) throws AlipayApiException
public static String xmlToString(InputStream in) throws AlipayApiException
public static void saveToXml(Node doc, File file) throws AlipayApiException
public static void validateXml(Node doc, File schemaFile) throws AlipayApiException
public static void validateXml(Node doc, InputStream schemaStream) throws AlipayApiException
public static String xmlToHtml(String payload, File xsltFile) throws AlipayApiException
public static void setNamespace(Element element, String namespace, String schemaLocation)
public static String encodeXml(String payload) throws AlipayApiException
Copyright © 2018 guerlab. All rights reserved.