© Peter Späth 2019
P. SpäthBeginning Jakarta EEhttps://doi.org/10.1007/978-1-4842-5079-2_8

8. Dealing with XML Data

Peter Späth1 
(1)
Leipzig, Sachsen, Germany
 
One important part of enterprise applications is the capability to produce, emit, receive, and investigate XML data. This is similar to the JSON data format we talked about in Chapter 5, but XML allows for a higher complexity compared to JSON. The advantages and disadvantages of XML over JSON are as follows:
  • Advantages

XML documents introduce schema declarations for structure validation and element validation. This means it can be precisely described how an XML document must be structured and which values elements and attributes are allowed to have.
  • Disadvantages

What can be an advantage can ...

Get Beginning Jakarta EE: Enterprise Edition for Java: From Novice to Professional 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.