CHAPTER 19 XML BUILDERS AND PARSERS

XML has quickly established itself as a technology that can be used for a variety of applications. As simple XML markup, it can represent both data and its structure. This is illustrated in the output produced from Example 01. XML is so adaptable that it also finds uses for object configuration (see Chapters 18 and 22), GUI architecting (see Chapter 20), and application building and deploying (see Appendix K).

Groovy supports a tree-based markup generator, BuilderSupport, that can be subclassed to make a variety of tree-structured object representations. Commonly, these builders are used to represent XML markup, HTML markup, or, as we shall see in the next chapter, Swing user interfaces. Groovy’s markup ...

Get Groovy Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.