...
We have used XMLUnit to compare the XML we created with our sample XML. To do this, make sure the sample XML is available, i.e. that the following class is added to your CLASSPATH:
| Include Page | ||
|---|---|---|
|
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:
...