W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2001

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

From: komal mangtani <mkomal@bea.com>
Date: Wed, 15 Aug 2001 17:44:58 -0700
Message-ID: <3B7B178A.1A57984A@bea.com>
To: Morris Matsa <mmatsa@us.ibm.com>
CC: xml schema <xmlschema-dev@w3.org>
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...

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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:52 UTC