public class XMLUtil extends Object
Constructor and Description |
---|
XMLUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
convertMap(org.dom4j.Element parent,
Map<Object,Object> values) |
static String[] |
getChildNames(org.dom4j.Element parent) |
static org.dom4j.Document |
getDocument(InputStream in) |
static org.dom4j.Document |
getDocument(String xml) |
static Map<String,String> |
mapAttributes(org.dom4j.Element element) |
static Map<String,String> |
mapAttributes(org.dom4j.Element element,
String[] ignore) |
static Map<String,String> |
mapChildValues(org.dom4j.Element parent) |
static void |
removeElements(org.dom4j.Element parent,
String name) |
static org.dom4j.Element |
requireChildElement(org.dom4j.Element parent,
String name) |
static void |
requireElement(org.dom4j.Element element,
String name) |
public static org.dom4j.Document getDocument(InputStream in) throws org.dom4j.DocumentException
org.dom4j.DocumentException
public static org.dom4j.Document getDocument(String xml) throws org.dom4j.DocumentException
org.dom4j.DocumentException
public static void requireElement(org.dom4j.Element element, String name) throws org.dom4j.DocumentException
org.dom4j.DocumentException
public static org.dom4j.Element requireChildElement(org.dom4j.Element parent, String name) throws org.dom4j.DocumentException
org.dom4j.DocumentException
public static String[] getChildNames(org.dom4j.Element parent)
public static Map<String,String> mapAttributes(org.dom4j.Element element, String[] ignore)
public static void removeElements(org.dom4j.Element parent, String name)
Copyright © 2018. All rights reserved.