home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / XML Utilities / XML Writer 2.12 / XML writer.exe / file0017.bin < prev    next >
Encoding:
Extensible Markup Language  |  2003-04-14  |  1.9 KB  |  53 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!--What you can do with this file:
  4.     1. Check that it validates against the internal DTD.
  5.        To validate, select 'Validate' from the Tools menu, or press F7.-->
  6.  
  7. <!-- DOCTYPE declaration, defining the internal DTD subset.-->
  8. <!DOCTYPE passport_details [
  9.  
  10. <!--The element 'first_name', denoted by (+), may be displayed one or more times.-->
  11. <!ELEMENT passport_details (birth_cert,last_name,first_name+,address)>
  12. <!ELEMENT birth_cert (#PCDATA)>
  13. <!--The element 'birth_cert' conatins an entity '&cert;' which references data that
  14.     is stored in a text file at the location    'http://www.xmlwriter.net/birth_cert.txt'.
  15.     Entities help to reduce the entry of repetitive    or large quantities of information.-->
  16. <!ENTITY cert SYSTEM "http://www.xmlwriter.net/examples/birth_cert.txt">
  17. <!ELEMENT last_name (#PCDATA)>
  18. <!ELEMENT first_name (#PCDATA)>
  19. <!--The element 'contact_no', denoted by (?), may be displayed zero or one times.
  20.     The element 'email', denoted by (*), may be displayed zero or more times.-->
  21. <!ELEMENT address (street,(city|town),(state|province),(ZIP|postal_code),country,contact_no?,email*)>
  22. <!ELEMENT street (#PCDATA)>
  23. <!ELEMENT city (#PCDATA)>
  24. <!ELEMENT town (#PCDATA)>
  25. <!ELEMENT state (#PCDATA)>
  26. <!ELEMENT province (#PCDATA)>
  27. <!ELEMENT ZIP (#PCDATA)>
  28. <!ELEMENT postal_code (#PCDATA)>
  29. <!ELEMENT country (#PCDATA)>
  30. <!ELEMENT contact_no (#PCDATA)>
  31. <!ELEMENT email (#PCDATA)>
  32.  
  33. ]>
  34. <!--End of the internal DTD subset.-->
  35.  
  36. <passport_details>
  37.     <birth_cert>&cert;</birth_cert>
  38.     <last_name>Citizen</last_name>
  39.     <first_name>Jo</first_name>
  40.     <address>
  41.         <street>X Street</street>
  42.         <city>X City</city>
  43.         <state>X State</state>
  44.         <postal_code>XXXX</postal_code>
  45.         <country>X Country</country>
  46.     <email>jo@citizen.com</email>
  47.     </address>
  48. </passport_details>
  49.  
  50. <!--This file was created using XMLwriter v2.0 Beta 2.
  51.     Copyright Wattle Software 2002. All rights reserved.
  52.     http://XMLwriter.net/-->
  53.