public class StdXMLUtil extends Object implements XMLUtil
| Modifier and Type | Field and Description |
|---|---|
protected static String |
TO_STRING_XSL |
| Constructor and Description |
|---|
StdXMLUtil() |
| Modifier and Type | Method and Description |
|---|---|
Document |
buildDocument(String xml) |
Document |
getDocument(Node node) |
String |
getNormalizedValue(Node node) |
protected Templates |
getToStringTemplates() |
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) |
protected static final String TO_STRING_XSL
public StdXMLUtil()
public Document newDocument()
newDocument in interface XMLUtilpublic Document newDocument(String root)
newDocument in interface XMLUtilpublic Document getDocument(Node node)
getDocument in interface XMLUtilpublic Element newElement(Node parent, String name)
newElement in interface XMLUtilpublic Element newElement(Node parent, String name, String value)
newElement in interface XMLUtilpublic String getNormalizedValue(Node node)
getNormalizedValue in interface XMLUtilpublic Document buildDocument(String xml)
buildDocument in interface XMLUtilpublic Document loadDocument(InputStream input) throws IOException, SAXException
loadDocument in interface XMLUtilIOExceptionSAXExceptionpublic Document loadDocument(InputStream input, EntityResolver resolver, ErrorHandler errorHandler) throws IOException, SAXException
loadDocument in interface XMLUtilIOExceptionSAXExceptionpublic void saveDocument(Document document, OutputStream output)
saveDocument in interface XMLUtilprotected Templates getToStringTemplates()
public String toNodeString(Node node)
toNodeString in interface XMLUtilpublic Node selectSingleNode(Object context, String expression)
selectSingleNode in interface XMLUtilpublic List<Node> selectNodeSet(Object context, String expression)
selectNodeSet in interface XMLUtil