<?xmlversion="1.0"encoding="UTF-8"?><!-- This is an XML comment --><!DOCTYPElibrary[<!ELEMENTlibrary(book+)><!ELEMENTbook(title,author+,published,description?)><!ELEMENTtitle(#PCDATA)><!ELEMENTauthor(#PCDATA)><!ELEMENTpublished(#PCDATA)><!ELEMENTdescription(#PCDATA)><!ATTLISTbookidID#REQUIREDcategoryCDATA#IMPLIEDinStock(yes|no)"yes">]><libraryxmlns:lit="http://example.com/literature"xmlns:pub="http://example.com/publishing"><!-- Basic element with attributes --><bookid="b1"category="fiction"inStock="yes"><title>The Great Gatsby</title><!-- Multiple elements of same type --><author>F. Scott Fitzgerald</author><published>1925</published><!-- CDATA section for text with special characters --><description><![CDATA[A story about the American Dream & society in the 1920s]]></description></book><!-- Namespaces --><lit:bookid="b2"inStock="no"><title>1984</title><author>George Orwell</author><!-- Empty element --><pub:published/></lit:book><!-- Special characters and entities --><bookid="b3"><title>Alice & Wonderland</title><author>Lewis Carroll</author><published>1865</published><!-- Mixed content --><description> A tale about a girl named <emphasis>Alice</emphasis> who falls down a rabbit hole.
Special chars: <>&'"</description></book><!-- Processing instruction --><?display-mode full-screen?><!-- Whitespace preservation --><bookid="b4"xml:space="preserve"><title> The Raven </title><author>Edgar Allan Poe</author><published>1845</published></book></library>