com.liferay.util.xml
Class XMLFormatter
java.lang.Object
com.liferay.util.xml.XMLFormatter
public class XMLFormatter
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLFormatter
public XMLFormatter()
fixProlog
public static String fixProlog(String xml)
fromCompactSafe
public static String fromCompactSafe(String xml)
stripInvalidChars
public static String stripInvalidChars(String xml)
toCompactSafe
public static String toCompactSafe(String xml)
toString
public static String toString(org.dom4j.Branch branch)
throws IOException
- Throws:
IOException
toString
public static String toString(org.dom4j.Branch branch,
String indent)
throws IOException
- Throws:
IOException
toString
public static String toString(org.dom4j.Branch branch,
String indent,
boolean expandEmptyElements)
throws IOException
- Throws:
IOException
toString
public static String toString(String xml)
throws org.dom4j.DocumentException,
IOException
- Throws:
org.dom4j.DocumentException
IOException
toString
public static String toString(String xml,
String indent)
throws org.dom4j.DocumentException,
IOException
- Throws:
org.dom4j.DocumentException
IOException