3. Example

Consider the following example XML document:

<?xml version="1.0"?>

<msg:message dc:date="19990421"
             xmlns:dc="http://purl.org/metadata/dublin_core#"
             xmlns:msg="http://www.message.net/"
>Phone home!</msg:message>

The Information Set for this XML document will contain at least the following items in some form:

  • A Document information item.

  • An Element information item with the URI part "http://www.message.net/" and the local part "message."

  • An Attribute information item with the URI part "http://purl.org/metadata/dublin_core#" and the local part "date".

  • Eleven Character information items for the character data, and an additional 8 Character information items for the attribute value.

Get Essential XML: Beyond Markup 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.