Package org.gradle.api
Interface XmlProvider
-
public interface XmlProviderProvides various ways to access the content of an XML document.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.w3c.dom.ElementasElement()Returns the XML document as a DOMElement.NodeasNode()Returns the XML document as a GroovyNode.java.lang.StringBuilderasString()Returns the XML document as aStringBuilder.
-
-
-
Method Detail
-
asString
java.lang.StringBuilder asString()
Returns the XML document as aStringBuilder. 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
StringBuilderrepresentation of the XML.
-
asNode
Node asNode()
Returns the XML document as a GroovyNode. 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
Noderepresentation of the XML.
-
asElement
org.w3c.dom.Element asElement()
Returns the XML document as a DOMElement. 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
Elementrepresentation of the XML.
-
-