This chapter introduces basic concepts about XML and JSON. At the end of this chapter, there is an exercise to demonstrate XML and JSON responses from a Micronaut app.
What Is XML?
E
xtensible
Markup
Language (XML) is a text-based markup language which is a standard for data interchange on the Web. As with HTML, you identify data using
tags (identifiers enclosed in angle brackets, like this:
<...>). Collectively, the tags are known as “markup.” It puts a label on a piece of data that identifies it (e.g.,
<message>...</message> ...