You only really need a DTD or Schema if you (or anyone you will be distributing your XML files to) need to validate against one. If there are only a small number of parties involved, everyone can agree on a common format (or agree to follow your common format), and you can be sure that every script or program will produce correct output there isn't really a need for a formal DTD or Schema.

If some of those conditions aren't met, you will need a DTD or Schema. In order to decide which is appropriate, first decide "Will a DTD do the job?". If the answer to that question is no, only then should you use a Schema.

My latest XML project was part of a messaging system for a distribution chain. My (server) script had to talk to their (client) script and that was all so we decided that developing a DTD was unnecessary.


In reply to Re: MSc XML Project by Ionizor
in thread MSc XML Project by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.