public interface XMLUtil
| Modifier and Type | Method and Description |
|---|---|
Document |
buildDocument(String xml) |
Document |
getDocument(Node node) |
String |
getNormalizedValue(Node node) |
Document |
loadDocument(InputStream input) |
Document |
loadDocument(InputStream input,
EntityResolver resolver,
ErrorHandler errorHandler) |
Document |
newDocument() |
Document |
newDocument(String root) |
Element |
newElement(Node parent,
String name) |
Element |
newElement(Node parent,
String name,
String value) |
void |
saveDocument(Document document,
OutputStream output) |
List<Node> |
selectNodeSet(Object context,
String expression) |
Node |
selectSingleNode(Object context,
String expression) |
String |
setValue(Node node,
String value) |
String |
toNodeString(Node node) |
String |
toString(Document doc) |
Document newDocument()
Document newDocument(String root)
Document getDocument(Node node)
Element newElement(Node parent, String name)
Element newElement(Node parent, String name, String value)
String getNormalizedValue(Node node)
Document buildDocument(String xml)
Document loadDocument(InputStream input) throws IOException, SAXException
IOExceptionSAXExceptionDocument loadDocument(InputStream input, EntityResolver resolver, ErrorHandler errorHandler) throws IOException, SAXException
IOExceptionSAXExceptionvoid saveDocument(Document document, OutputStream output)
String toNodeString(Node node)
Node selectSingleNode(Object context, String expression)
List<Node> selectNodeSet(Object context, String expression)