OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XML Document - DOCTYPE vs Schema NS


> 1.  Is it valid for an XML document to have both a DOCTYPE tag and a
> namespace?


> 2.  If it is valid, which takes precedence for validation purposes, the
> specified in the DOCTYPE, or the schema defined in the namespace?

As I understand it the DTD.  Schema validation comes after DTD validation
(if any).  This is done to allow entities to be resolved before schema
validation.  Of course some of this may be application specific.

> or the schema defined in the namespace?

Do you mean defined in xsi:schemaLocation?  Or is your application
automatically resolving the namespace to a schema?

Jeff Rafter
Defined Systems