q) XML Schema and valid XML documents

Generic Usenet Account

Usenet Archive
Joined
Jul 3, 2003
Messages
92
Reaction score
0
Wikipedia provides the following definition for valid XML document (http://en.wikipedia.org/wiki/XML):

it contains a reference to a Document Type Definition (DTD), and that its elements and attributes are declared in that DTD and follow the grammatical rules for them that the DTD specifies.

There is no reference to XML Schema in the above defintion. I am presuming that this is a dated definition for valid XML document and that an XML document that has an XML Schema associated with it is also a valid XML document.

Kindly confirm.

Thanks,
Ramesh
 

Richard Tobin

Usenet Archive
Joined
Jan 6, 2000
Messages
4,251
Reaction score
0
Generic Usenet Account said:
it contains a reference to a Document Type Definition (DTD), and that its elements and attributes are declared in that DTD and follow the grammatical rules for them that the DTD specifies.
There is no reference to XML Schema in the above defintion.

Without additional context, "valid" means "valid according to its DTD", and that's how it's defined in the XML spec. In the context of XML Schemas, it can of course mean "valid according to a schema". If you want to be less ambiguous, use the term "schema valid" or (since there are other schema languages) "XML Schema valid".

-- Richard
 

Andy Dingley

Usenet Archive
Joined
Feb 23, 2000
Messages
3,303
Reaction score
0
Wikipedia provides the following definition for valid XML document (http://en.wikipedia.org/wiki/XML):

I'm normally fairly pro-Wikipedia, but many of the software articles are poor, and certainly the XML stuff.

There's very little need for WP content on technical issues like this, as it's well described elsewhere. This also discourages (or fails to encourage) the competent WP editors to do anything about the XML content. So read those sources, not WP.
 

Peter Flynn

Usenet Archive
Joined
Jan 2, 2000
Messages
1,813
Reaction score
0
Andy said:
I'm normally fairly pro-Wikipedia, but many of the software articles are poor, and certainly the XML stuff.

There's very little need for WP content on technical issues like this, as it's well described elsewhere. This also discourages (or fails to encourage) the competent WP editors to do anything about the XML content. So read those sources, not WP.

Oh dear. It has deteriorated, hasn't it? It used to be much better than that. When I have more time...

///Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,049
Messages
3,104,245
Members
248,133
Latest member
DujonT

Latest Threads

Top