org.jivesoftware.smackx.pubsub.util
Class XmlUtils
java.lang.Object
org.jivesoftware.smackx.pubsub.util.XmlUtils
public class XmlUtils
- extends Object
Simple utility for pretty printing xml.
- Author:
- Robin Collier
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlUtils
public XmlUtils()
prettyPrint
public static void prettyPrint(String header,
String xml)
- Parameters:
header
- Just a title for the stanza for readability. Single word no spaces since
it is inserted as the root element in the output.xml
- The string to pretty print
appendAttribute
public static void appendAttribute(StringBuilder builder,
String att,
String value)
Copyright © 2003-2007 Jive Software.