Package groovy.util

# Class XmlUtil

java.lang.Object
groovy.util.XmlUtil

    @Deprecated
    public class XmlUtil
    extends java.lang.Object

Deprecated.
Used for pretty printing XML content and other XML related utilities.

- ## Constructor Summary

  Constructors
  Constructor | Description
  --- | ---
  `XmlUtil()` | Deprecated.

- ## Method Summary

  Modifier and Type | Method | Description
  --- | --- | ---
  `static java.lang.String` | `serialize​(GPathResult node)` | Deprecated.
  `static void` | `serialize​(GPathResult node, java.io.OutputStream os)` | Deprecated.
  `static void` | `serialize​(GPathResult node, java.io.Writer w)` | Deprecated.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### XmlUtil

    public XmlUtil()
    Deprecated.

- ## Method Details

  - ### serialize

    @Deprecated public static java.lang.String serialize​(GPathResult node)
    Deprecated.
    Return a pretty version of the GPathResult.
    Parameters:
      `node` - a GPathResult to serialize to a String
    Returns:
      the pretty String representation of the GPathResult

  - ### serialize

    @Deprecated public static void serialize​(GPathResult node, java.io.OutputStream os)
    Deprecated.
    Write a pretty version of the GPathResult to the OutputStream.
    Parameters:
      `node` - a GPathResult to serialize
      `os` - the OutputStream to write to

  - ### serialize

    @Deprecated public static void serialize​(GPathResult node, java.io.Writer w)
    Deprecated.
    Write a pretty version of the GPathResult to the Writer.
    Parameters:
      `node` - a GPathResult to serialize
      `w` - the Writer to write to