O'Reilly logo

Secure XML: The New Syntax for Signatures and Encryption by Kitty Niles, Donald E. Eastlake

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

3.2. XML Documents

XML documents are the class of data objects described by the XML Recommendation [XML]. All XML documents are made up of two parts:

  • A prolog, which, if present, contains at least the XML declaration

  • A body that contains the actual marked-up document

For example, the following is an XML document:

<?xml version="1.0"?> <body> content </body>

All XML documents have a logical and a physical structure. A document usually consists of a hierarchical structure of elements. An element consists of data (including null data) surrounded by start and end tags. In XML, you can generate an infinite number of custom tag sets for your documents.

Example 3-1 compares similar XML and HTML documents. HTML typically describes what a document looks ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required