api / org.gradle.api / XmlProvider / asElement

asElement

abstract fun asElement(): Element

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.

Return
An Element representation of the XML.