[Home] [By Thread] [By Date] [Recent Entries]

  • To: "Paul Jupp" <jupppaul@h...>,<xml-dev@l...>
  • Subject: SV: What constitutes an XML document?
  • From: "Jens Jakob Andersen, PDI" <jens.jakob.andersen@p...>
  • Date: Mon, 12 Nov 2001 12:33:17 +0100
  • Thread-index: AcFradO6duiF7l27R+au9em5Xj3yewAA5hyg
  • Thread-topic: What constitutes an XML document?

Hi Paul

This is an interesting question.

A XML document can have 2 formal states:

1. Wellformed
2. Valid

The Wellformed document is what you describe below, and the Valid
document needs a DTD.

So I say that the answer is, a Wellformed document is a syntactically
correct XML document according to the XML spec, and if you have such a
one, you have a XML document (Wellformed, not Valid).

Best regards

JJ

> 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.
> 
> BUT
> 
> 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)
> 
> THEN
> 
> 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?
> 

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member