1 <?xml version="1.0"?>
   2 <!DOCTYPE note [
   3 <!ELEMENT note    (#PCDATA|to|with|ar:from|br:from|heading|body)*>
   4 <!ELEMENT to      (sender)>
   5 <!ELEMENT sender (#PCDATA)>
   6 <!ELEMENT with      (message)>
   7 <!ELEMENT message (#PCDATA)>
   8 <!ELEMENT ar:from    (tab)>
   9 <!ELEMENT tab (#PCDATA)>
  10 <!ELEMENT br:from    (#PCDATA)>
  11 <!ELEMENT heading (#PCDATA)>
  12 <!ELEMENT body    (#PCDATA)>
  13 <!ATTLIST note xmlns:ar CDATA #IMPLIED>
  14 <!ATTLIST note xmlns:br CDATA #IMPLIED>
  15 ]>
  16 <note xmlns:ar="http://www.xml.com/books"
  17       xmlns:br="http://www.abc.com">
  18 <to>
  19 
  20 <!--This is with whitespace-->
  21 <sender>John</sender>
  22 
  23 </to>
  24 <with>   <message>with whitespace</message>   </with>
  25 <ar:from> <tab>Jani</tab></ar:from>
  26 <br:from>Next</br:from>
  27 <heading>Reminder</heading>
  28 <body> weekend!</body>
  29 </note>