com.legstar.coxb.util
Class XmlUtil

java.lang.Object
  extended by com.legstar.coxb.util.XmlUtil

public final class XmlUtil
extends Object

A utility class for XML manipulation.


Method Summary
static String prettyPrint(Source source)
          Pretty print an XML.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

prettyPrint

public static String prettyPrint(Source source)
Pretty print an XML. Use with caution as this drains the source if it is a StreamSource.

Parameters:
source - the XML source
Returns:
a String with readable XML


Copyright © 2015 LegSem. All Rights Reserved.