Compound documents

It is possible for a single XML document to contain fragments that are defined in a number of different DTDs or schemas. The ability to do this resolves a number of issues.

To facilitate rendering of complex structures in a browser, it may be necessary to embed HTML elements within a document that does not otherwise conform to this standard. For example, HTML tables (see Chapter 23) are powerful, and well supported by the popular Web browsers, so it would be useful to be able to use HTML elements whenever a table is needed:

This is actually just one case of a general need to match data to the expectations of widely used tools ...

Get XML Companion, The, Third Edition 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.