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.Node node)
throws IOException
- Throws:
IOException
toString
public static String toString(org.dom4j.Node node,
String indent)
throws IOException
- Throws:
IOException
toString
public static String toString(org.dom4j.Node node,
String indent,
boolean expandEmptyElements)
throws IOException
- Throws:
IOException
toString
public static String toString(org.dom4j.Node node,
String indent,
boolean expandEmptyElements,
boolean trimText)
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