sample.xml•1.59 kB
<?xml version="1.0" encoding="UTF-8"?>
<catalog xmlns="http://example.org/catalog">
<book id="bk101" category="fiction">
<author>Gambardella, Matthew</author>
<title>XML Developer's Guide</title>
<genre>Computer</genre>
<price>44.95</price>
<publish_date>2000-10-01</publish_date>
<description>An in-depth look at creating applications with XML.</description>
</book>
<book id="bk102" category="fiction">
<author>Ralls, Kim</author>
<title>Midnight Rain</title>
<genre>Fantasy</genre>
<price>5.95</price>
<publish_date>2000-12-16</publish_date>
<description>A former architect battles corporate zombies, an evil sorceress, and her own childhood to become queen of the world.</description>
</book>
<book id="bk103" category="non-fiction">
<author>Corets, Eva</author>
<title>Maeve Ascendant</title>
<genre>Fantasy</genre>
<price>5.95</price>
<publish_date>2000-11-17</publish_date>
<description>After the collapse of a nanotechnology society, the young survivors lay the foundation for a new society.</description>
</book>
<magazine id="mg101" frequency="monthly">
<title>Programming Today</title>
<publisher>Tech Media</publisher>
<price>6.50</price>
<issue>125</issue>
<publish_date>2023-01-15</publish_date>
<articles>
<article>
<author>Jane Smith</author>
<title>Modern XML Processing</title>
</article>
<article>
<author>John Doe</author>
<title>XPath Deep Dive</title>
</article>
</articles>
</magazine>
</catalog>