Re: performance wise, is there any difference between dtd validation v/s schema validation?

I understand that.  let's assume, there is no extra validation and I just did
dtd to schema conversion using some std tool.
let's also assume schema validators and dtds are in their most optimized form.

then which one's faster theoretically?

Let me ask this ,
does xml schema ( being an xml by itself ) has a standard dtd ( maybe defined
by w3c ) to which it should conform?
If not, what is an xsd file validated against?  I don't think it is just
checked for well-formedness.

I thought that as xml schema itself is an xml , the schema validation will
take more time as it has to recursively check whether xsd is conforming to dtd
and as dtd is purely a raw format, that might be faster.
Again this is just my thinking and I might be totally wrong.

Maybe somebody can point me to documentation explaining this concept , or
provide some explaination...
Komal.


Morris Matsa wrote:

> In practice, schema validators are newer and seem to therefore not be
> optimized yet and slower.

> In theory, it depends on your schema.  If you ask the DTD to validate only
> the content model, and ask the schema to run a regular expression over
> every bit of text, then of course the schema validation will be slower ---
> it's doing a lot more.  If you were going to do that validation anyway in
> your application, and you no longer need to, then your entire application
> might run just as fast.

> Of course, some validators are faster than others.  Try them out andcompare.

>

>
> komal mangtani <mkomal@bea.com>@w3.org on 08/15/2001 02:21:30 PM
>
> Sent by:  xmlschema-dev-request@w3.org
>
> To:   xml schema <xmlschema-dev@w3.org>
> cc:
> Subject:  performance wise, is there any difference between dtd validation
>       v/s   schema validation?
>
> which is faster? or there is no difference?
> Komal.

Received on Wednesday, 15 August 2001 20:45:45 UTC