Liferay 6.1.2-ce-ga3

com.liferay.util.xml
Class XMLFormatter

java.lang.Object
  extended by com.liferay.util.xml.XMLFormatter

public class XMLFormatter
extends Object


Constructor Summary
XMLFormatter()
           
 
Method Summary
static String fixProlog(String xml)
           
static String fromCompactSafe(String xml)
           
static String stripInvalidChars(String xml)
           
static String toCompactSafe(String xml)
           
static String toString(org.dom4j.Node node)
           
static String toString(org.dom4j.Node node, String indent)
           
static String toString(org.dom4j.Node node, String indent, boolean expandEmptyElements)
           
static String toString(org.dom4j.Node node, String indent, boolean expandEmptyElements, boolean trimText)
           
static String toString(String xml)
           
static String toString(String xml, String indent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLFormatter

public XMLFormatter()
Method Detail

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

Liferay 6.1.2-ce-ga3