Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Include Page
GROOVY:XML Example
GROOVY:XML Example

You may also want to see Using MarkupBuilder for Agile XML creation.

As a final example, suppose we have an existing XML document and we want to automate generation of the markup without having to type it all in? We just need to use DomToGroovy as shown in the following example:

...