groovy.xml
public class XmlUtil extends java.lang.Object
| Constructor and Description |
|---|
XmlUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
serialize(org.w3c.dom.Element element)
Return a pretty String version of the Element.
|
static void |
serialize(org.w3c.dom.Element element,
java.io.OutputStream os)
Write a pretty version of the Element to the OutputStream.
|
static java.lang.String |
serialize(java.lang.String xmlString)
Return a pretty version of the XML content contained in the given String.
|
static void |
serialize(java.lang.String xmlString,
java.io.OutputStream os)
Write a pretty version of the given XML string to the OutputStream.
|
static java.lang.String |
serialize(Writable writable)
Return a pretty String version of the XML content produced by the Writable.
|
static void |
serialize(Writable writable,
java.io.OutputStream os)
Write a pretty version of the XML content produced by the Writable to the OutputStream.
|
public static java.lang.String serialize(org.w3c.dom.Element element)
element - the element to serializepublic static void serialize(org.w3c.dom.Element element,
java.io.OutputStream os)
element - the element to serializeos - the outputstream to write topublic static java.lang.String serialize(Writable writable)
writable - the writable to serializepublic static void serialize(Writable writable, java.io.OutputStream os)
writable - the writable to serializeos - the outputstream to write topublic static java.lang.String serialize(java.lang.String xmlString)
xmlString - the string to serializepublic static void serialize(java.lang.String xmlString,
java.io.OutputStream os)
xmlString - the string to serializeos - the outputstream to write to