Package: org.gradle.plugins.ide.api

## [Groovy] Class XmlFileContentMerger

- org.gradle.plugins.ide.api.XmlFileContentMerger

- Models the generation/parsing/merging capabilities. Adds XML-related hooks.

  For examples see docs for EclipseProject or IdeaProject and others.

- - ### Properties Summary

    Properties
    Type | Name and description
    --- | ---
    `XmlTransformer` | `xmlTransformer`

  - ### Constructor Summary

    Constructors
    Constructor and description
    `XmlFileContentMerger (XmlTransformer xmlTransformer)`

  - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `void` | `withXml(Closure closure)` Adds a closure to be called when the file has been created.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class FileContentMerger` | `beforeMerged, whenMerged`

- - ### Property Detail

    - #### XmlTransformer xmlTransformer

  - ### Constructor Detail

    - #### XmlFileContentMerger(XmlTransformer xmlTransformer)

  - ### Method Detail

    - #### void withXml(Closure closure)

      Adds a closure to be called when the file has been created. The XML is passed to the closure as a parameter in form of a XmlProvider. The closure can modify the XML before it is written to the output file.

      For examples see docs for EclipseProject or IdeaProject and others.

      Parameters:
        `closure` - The closure to execute when the XML has been created.