[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [xml-dev] What constitutes an XML document?
Your doc *is* an XML document if it matches to the XML grammar as
defined in XML Spec (http://www.w3.org/TR/2000/REC-xml-20001006):
document ::= prolog element Misc*
prolog ::= XMLDecl? Misc* (doctypedecl Misc*) ?
^^^^^^^ ^^^^^^^^^^^ ^^^
<?xml ...?> <!DOCTYPE ...> |
|_> means that
doctypedecl may appear one time, but must NOT: thus
<greeting>Hello, what are the news from your agency ?</greeting>
is a $genuine$ XML document.
On Mon, 12 Nov 2001, Paul Jupp wrote:
> I've joined this list primarily because I need an answer to a very specific
> If I am asked to produce an XML document and I come up with something that
> LOOKS like XML markup - syntactically correct tags, attributes, etc.
> I do not supply a DTD or a schema, and I refuse to supply a DTD or a schema
> (because I have actually created the document without designing/creating a
> DTD or a schema)
> I understand that the document cannot be validated - but what I need to know
> is: Is what I have produced actually XML at all, or is it just a document
> formatted to look like XML?
> This is not theoretical - it relates to a genuine situation, though I have
> changed the identity of the author of the document for obvious reasons.
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
> The list archives are at http://lists.xml.org/archives/xml-dev/
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://lists.xml.org/ob/adm.pl>
Laboratoire PMC - Ecole polytechnique
91128 Palaiseau cedex - +33 1 6933 4287 - fax +33 1 6933 3004