public interface XMLReader
Modifier and Type | Method and Description |
---|---|
java.io.Reader |
openStream(java.lang.String publicID,
java.lang.String systemID)
Open a stream from the reader.
|
void |
xmlToFile(java.io.FileOutputStream outputStream,
Document document)
Convert an XML document into its String equivalent and write to the file.
|
java.lang.String |
xmlToFormattedString(Element element)
Convert an XML document into a formatted String equivalent.
|
java.lang.String |
xmlToString(Document document)
Convert an XML document into its String equivalent.
|
java.lang.String |
xmlToString(Element element)
Convert an XML element into its String equivalent.
|
java.io.Reader openStream(java.lang.String publicID, java.lang.String systemID) throws java.lang.Exception
publicID
- the public ID which can be null.systemID
- the system ID which cannot be null.java.lang.Exception
- any error.java.lang.String xmlToString(Document document) throws java.lang.Exception
document
- the document.java.lang.Exception
- any error.java.lang.String xmlToString(Element element) throws java.lang.Exception
element
- the element.java.lang.Exception
- any error.java.lang.String xmlToFormattedString(Element element) throws java.lang.Exception
element
- the root element.java.lang.Exception
- any error.void xmlToFile(java.io.FileOutputStream outputStream, Document document) throws java.lang.Exception
document
- the document.java.lang.Exception
- any error.