public class DOMXMLUtil extends Object
| Constructor and Description |
|---|
DOMXMLUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addToRoot(String tagName,
String content,
Document document) |
static String |
domToXML(Document document)
DOM 转为xml
|
static void |
initRransformer() |
static Document |
newDocument() |
static Document |
parseXMLToDocument(String xml) |
static Map<String,String> |
parseXmlToMap(String fromXML)
将解密后的xml转为map
|
public static void initRransformer()
public static Map<String,String> parseXmlToMap(String fromXML)
fromXML - public static Document newDocument()
public static void addToRoot(String tagName, String content, Document document)
string - content - rootElement - Copyright © 2021. All rights reserved.