Processing existing XML
Groovy provides special support through its XmlParser and XmlSlurper classes for processing XML.
If you have special needs, you can use one of the many available Java APIs for XML processing:
- DOM
- DOM using Groovy's DOMCategory
- SAX
- StAX
- DOM4J
- XOM
- JDOM
- Jaxen/XPath
For some more discussion of the pro's and con's of your XML Processing options and some additional details, see Chapter 12 of GINA.
Creating new XML
The most used Groovy technique is the XmlBuilder.
You can also use XmlParser, DOM, DOM with category support, DOM4J, JDOM.
More Information
See also:
- Groovy SOAP
- Testing Web Services
- Testing Web Applications
Labels