Presenting XML to Clients

XML is a useful way of exchanging data between applications and for moving and storing data within an application. However, XML is not very convenient for presenting data to a user because it primarily describes the content of the data and not how this data should be presented to the user.

A user requires that the data be formatted so that it is easy to read. XML defines the data and its metadata, but it does not define how to format the data for presentation. This was in fact one of the design criteria; XML deliberately does define data presentation formats. Because the same data will be presented in different ways to different users, any attempt to include presentation information would turn the XML document into an ...

Get Sams Teach Yourself J2EE™ in 21 Days, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.