By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,345 Members | 2,408 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,345 IT Pros & Developers. It's quick & easy.

Xerces Validation with XML Schema - runtime

P: n/a

I built a XSD File with the tool XML-Spy from Altova. My XML file
consists of about 5000 elements. If I use the validate button in
XML-Spy, the validation process takes about 8 seconds. But if I use
Xerces-J2 to validate my XML File it takes about 90 seconds (xerces-c
takes about 85 sec).

Does anybody know, why xerces is that slow resp. why XML Spy is that
And could you give me some hints how to speed up the validation with

Thanks and best redargs,

Mar 20 '06 #1
Share this Question
Share on Google+
1 Reply

P: n/a

Now I localized the runtime problem:
In my schema I limited the maximun occurrence of an element with
The runtime is independent from the amount of the elements in the XML

If I set maxOcc=unbounded, the validation process takes about 500ms.

Is there any possibility to decrease the runtime (I have to limit the
occurence with maxOcc=8048)? Any special parser
configurations/properties etc.?

Mar 20 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.