Overview | Package | Class | Deprecated | Index | Help
| Groovy Documentation
| FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD

## org.gradle.api.artifacts.maven
[Java] Interface XmlProvider

    public interface XmlProvider

Provides various ways to access the content of an XML document.

Authors:
  Hans Dockter

Method Summary
`org.w3c.dom.Element` | `asElement()` Returns the XML document as a DOM org.w3c.dom.Element.
`groovy.util.Node` | `asNode()` Returns the XML document as a Groovy groovy.util.Node.
`java.lang.StringBuilder` | `asString()` Returns the XML document as a java.lang.StringBuilder.

Method Detail

### asElement

    public org.w3c.dom.Element asElement()

  Returns the XML document as a DOM org.w3c.dom.Element. Changes to the returned instance will be applied to the XML. The returned instance is only valid until one of the other methods on this interface are called.
  Returns:
    An `Element` representation of the XML.

### asNode

    public groovy.util.Node asNode()

  Returns the XML document as a Groovy groovy.util.Node. Changes to the returned instance will be applied to the XML. The returned instance is only valid until one of the other methods on this interface are called.
  Returns:
    A `Node` representation of the XML.

### asString

    public java.lang.StringBuilder asString()

  Returns the XML document as a java.lang.StringBuilder. Changes to the returned instance will be applied to the XML. The returned instance is only valid until one of the other methods on this interface are called.
  Returns:
    A `StringBuilder` representation of the XML.

Groovy Documentation