org.granite.util
Interface XMLUtil

All Known Implementing Classes:
StdXMLUtil

public interface XMLUtil

Author:
Franck WOLFF

Method Summary
 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)
           
 

Method Detail

newDocument

Document newDocument()

newDocument

Document newDocument(String root)

getDocument

Document getDocument(Node node)

newElement

Element newElement(Node parent,
                   String name)

newElement

Element newElement(Node parent,
                   String name,
                   String value)

getNormalizedValue

String getNormalizedValue(Node node)

setValue

String setValue(Node node,
                String value)

buildDocument

Document buildDocument(String xml)

loadDocument

Document loadDocument(InputStream input)
                      throws IOException,
                             SAXException
Throws:
IOException
SAXException

loadDocument

Document loadDocument(InputStream input,
                      EntityResolver resolver,
                      ErrorHandler errorHandler)
                      throws IOException,
                             SAXException
Throws:
IOException
SAXException

saveDocument

void saveDocument(Document document,
                  OutputStream output)

toString

String toString(Document doc)

toNodeString

String toNodeString(Node node)

selectSingleNode

Node selectSingleNode(Object context,
                      String expression)

selectNodeSet

List<Node> selectNodeSet(Object context,
                         String expression)