Jade XML Tree Model

XML has a simple markup syntax that allows you to store information as a tree of tagged nodes.

Consider the XML document library1.xml, shown in the following example, that describes the contents of a library.

<?xml version="1.0"?>
<!--An example XML document-->
<library>
  <book isbn="0-246-13655-3">
    <title>Mystery</title>
    <author>Peter Straub</author>
  </book>
  <book isbn="1-876590-17-3">
    <title>False Memory</title>
    <author>Dean Koontz</author>
  </book>
</library>

In this example:

The <title> and <author> elements each contain text data.