4

Extensible Markup Language Basics

Extensible Markup Language (XML) documents are simple case-sensitive text documents describing structured data. In XML, data are arranged in the form of a tree. Each node of the tree is called an element, which is syntactically represented as a start tag–end tag pair. Tags contain the element name enclosed between the less than (<) and greater than (>) symbols. The end tag also contains a trailing forward slash symbol. Each element may contain text or be empty.

<elementName>text</elementName> <elementName></elementName>

Empty elements may also be represented with the following notation:

<elementName/>

Elements may have attributes in the form of simple key-value pairs. The list of attributes appears inside ...

Get Identification and Management of Distributed Data 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.