Adrian Herscu <[EMAIL PROTECTED]> wrote on 09/27/2006 07:08:58 AM:

> Michael, thanks for the feedback.
> 
> The encryption complicates other things so I have removed it.
> Now the schemas are accessible through plain text http.
> But now I have discovered another problem: validation takes a long-long
> time to complete (and it almost never completes). E.g. for 70-80 files
> it takes it almost ten minutes and somewhere in the middle it throws
> this kind of errors:
> 
> [xmlvalidate] D:\mypath\myfile.xml:8:353: schema_reference.4: Failed to
> read schema document http://mydomain/schemas/myschema.xsd', because 1)
> could not find the document; 2) the document could not be read; 3) the
> root element of the document is not <xsd:schema>.
> [xmlvalidate] D:\mypath\myfile.xml:8:353: cvc-elt.1: Cannot find the
> declaration of element 'myrootelement'.
> 
> ...and sometimes with:
> 
> [xmlvalidate] http://mydomain/schemas/myschema.xsd:29:90:
> schema_reference.4: Failed to read schema document 'someimported.xsd',
> because 1) could not find the document; 2) the document could not be
> read; 3) the root element of the document is not <xsd:schema>.
> 
> During the whole operation the CPU load is minimal (1% -- like nothing
> happens). I have looked into the network activity and there are many
> schema requests (since schemas are not cached by default), but the
> network is far from being chocked and the server seems to reply 
promptly.
> 
> I am using Xerces 2.7.1 through Ant 1.6.5, therefore I am looking for a
> way to configure Xerces, if possible, without Java coding (e.g. enabling
> caching by setting some property through Ant -- is that possible?).

Try changing the parser configuration to org.apache.xerces.parsers.
XMLGrammarCachingConfiguration. You can do that by setting [1] the 
org.apache.xerces.xni.parser.XMLParserConfiguration system property.

> Please help.
> 
> Adrian.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

[1] http://xerces.apache.org/xerces2-j/faq-xni.html#faq-2

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to