@Deprecated public class XmlUtil extends Object
Used for pretty printing XML content and other XML related utilities.
Type Params | Return Type | Name and description |
---|---|---|
|
static String |
serialize(GPathResult node) Return a pretty version of the GPathResult. |
|
static void |
serialize(GPathResult node, OutputStream os) Write a pretty version of the GPathResult to the OutputStream. |
|
static void |
serialize(GPathResult node, Writer w) Write a pretty version of the GPathResult to the Writer. |
Return a pretty version of the GPathResult.
node
- a GPathResult to serialize to a StringWrite a pretty version of the GPathResult to the OutputStream.
node
- a GPathResult to serializeos
- the OutputStream to write toWrite a pretty version of the GPathResult to the Writer.
node
- a GPathResult to serializew
- the Writer to write to