For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

asElement

abstract fun asElement(): Element(source)

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.

Since

1.0