org.granite.util
Class DOM
java.lang.Object
org.granite.util.DOM
public class DOM
- extends Object
- Author:
- Franck WOLFF
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TO_STRING_XSL
protected static final String TO_STRING_XSL
- See Also:
- Constant Field Values
DOM
public DOM()
DOM
public DOM(ErrorHandler errorHandler)
getDocumentBuilderFactory
protected DocumentBuilderFactory getDocumentBuilderFactory()
getValidatingDocumentBuilderFactory
protected DocumentBuilderFactory getValidatingDocumentBuilderFactory()
getXPathFactory
protected XPathFactory getXPathFactory()
getToStringTemplates
protected Templates getToStringTemplates()
loadDocument
public Document loadDocument(InputStream input)
throws IOException,
SAXException
- Throws:
IOException
SAXException
loadDocument
public Document loadDocument(InputStream input,
EntityResolver resolver)
throws IOException,
SAXException
- Throws:
IOException
SAXException
saveDocument
public void saveDocument(Document document,
OutputStream output)
throws TransformerException
- Throws:
TransformerException
newDocument
public Document newDocument()
newDocument
public Document newDocument(String root)
getDocument
public Document getDocument(Node node)
newElement
public Element newElement(Node parent,
String name)
newElement
public Element newElement(Node parent,
String name,
String value)
getNormalizedValue
public String getNormalizedValue(Node node)
setValue
public String setValue(Node node,
String value)
selectSingleNode
public Node selectSingleNode(Object context,
String expression)
throws XPathExpressionException
- Throws:
XPathExpressionException
selectNodes
public List<Node> selectNodes(Object context,
String expression)
throws XPathExpressionException
- Throws:
XPathExpressionException
toString
public String toString(Node node)