ca.infoway.messagebuilder.util.xml
Class XmlRenderer

Package class diagram package XmlRenderer
java.lang.Object
  extended by ca.infoway.messagebuilder.util.xml.XmlRenderer

public class XmlRenderer
extends Object

A utility that renders a DOM tree into a String representation.

Author:
Intelliware Development

Constructor Summary
XmlRenderer()
           
 
Method Summary
static String render(Document document)
          Render the document to properly-formatted XML.
static void render(Document document, Writer writer)
          Render the document to properly-formatted XML.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlRenderer

public XmlRenderer()
Method Detail

render

public static String render(Document document)
                     throws TransformerException

Render the document to properly-formatted XML.

Parameters:
document - - the document to render.
Returns:
- the XML.
Throws:
TransformerException - - if the XML cannot be rendered

render

public static void render(Document document,
                          Writer writer)
                   throws TransformerException

Render the document to properly-formatted XML.

Parameters:
document - - the document to render.
writer - - the writer to which the XML should be rendered.
Throws:
TransformerException - - if the XML cannot be rendered


Copyright © 2013. All Rights Reserved.