Package org.gradle.api
Schnittstelle XmlProvider
public interface XmlProvider
Provides various ways to access the content of an XML document.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns the XML document as a DOMElement.asNode()Returns the XML document as a GroovyNode.asString()Returns the XML document as aStringBuilder.
-
Methodendetails
-
asString
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.- Gibt zurück:
- 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.- Gibt zurück:
- A
Noderepresentation of the XML.
-
asElement
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.- Gibt zurück:
- An
Elementrepresentation of the XML.
-