NextApp Echo2
v2.1.1

nextapp.echo2.webrender.output
Class XmlDocument

java.lang.Object
  extended by nextapp.echo2.webrender.output.XmlDocument
Direct Known Subclasses:
HtmlDocument, ServerMessage

public class XmlDocument
extends java.lang.Object

A simple wrapper around JAXP/W3C DOM APIs to generate and render an XML document.


Constructor Summary
XmlDocument(java.lang.String qualifiedName, java.lang.String publicId, java.lang.String systemId, java.lang.String namespaceUri)
          Creates a new XmlDocument.
 
Method Summary
 org.w3c.dom.Document getDocument()
          Returns the W3C DOM implementation Document object.
 void render(java.io.PrintWriter pw)
          Renders the document to a PrintWriter.
 void setOutputProperties(java.util.Properties newValue)
          Sets the output properties which will be used by the rendering javax.xml.transform.Transformer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlDocument

public XmlDocument(java.lang.String qualifiedName,
                   java.lang.String publicId,
                   java.lang.String systemId,
                   java.lang.String namespaceUri)
Creates a new XmlDocument.

Parameters:
qualifiedName - the qualified name of the document type to be created
publicId - the external subset public identifier
systemId - the external subset system identifier
namespaceUri - the namespace URI of the document element to create
Method Detail

getDocument

public org.w3c.dom.Document getDocument()
Returns the W3C DOM implementation Document object.

Returns:
the Document object

render

public void render(java.io.PrintWriter pw)
            throws java.io.IOException
Renders the document to a PrintWriter.

Parameters:
pw - the PrintWriter
Throws:
java.io.IOException

setOutputProperties

public void setOutputProperties(java.util.Properties newValue)
Sets the output properties which will be used by the rendering javax.xml.transform.Transformer.

Parameters:
newValue - the new output properties

NextApp Echo2
v2.1.1