Re: xmlvalidate with remote schemas

2006-09-27 Thread Adrian Herscu
My mistake! I have put the element inside the element. Anyway, the behavior remained the same -- it still fails erratically and it still takes a long time to complete :-( Adrian Herscu wrote: > It took me a long time to experiment with this. > Here is the result: > Property 'org.apache.xerces.

Re: xmlvalidate with remote schemas

2006-09-27 Thread Adrian Herscu
It took me a long time to experiment with this. Here is the result: Property 'org.apache.xerces.xni.parser.XMLParserConfiguration' is not recognized. Any idea how to enable the caching feature through the ANT interface? Adrian. James Abley wrote: > Try turning on grammar caching. > > http://xml.

Re: About schemavalidate Was (Re: xmlvalidate with remote schemas)

2006-09-26 Thread Steve Loughran
Prashant wrote: Steve Loughran wrote: You have to use different mapping the xmlns to the relevant doc. You probably always need a local copy because for a long time, the public webapp xsd didn't allow + in a mime type, like application/soap+xml. I am not sure i understand what you mean. Can

Re: About schemavalidate Was (Re: xmlvalidate with remote schemas)

2006-09-26 Thread Steve Loughran
Prashant wrote: Steve Loughran wrote: Ant 1.7's extension to sets things up right for all nested elements. If you cannot use the beta, look at the source, see how we set up the property http://apache.org/xml/properties/schema/external-schemaLocation Thats neat. I googled and came up wi

About schemavalidate Was (Re: xmlvalidate with remote schemas)

2006-09-26 Thread Prashant
Steve Loughran wrote: Ant 1.7's extension to sets things up right for all nested elements. If you cannot use the beta, look at the source, see how we set up the property http://apache.org/xml/properties/schema/external-schemaLocation Thats neat. I googled and came up with this[1] explan

Re: About schemavalidate Was (Re: xmlvalidate with remote schemas)

2006-09-26 Thread Prashant
Steve Loughran wrote: It turns out that all J2EE 1.4 XSDs belong to same namespace [2]. yeah, that is just silly. Take it up with javaee-spec-feedback at sun.com. The more people who complain about this, the more likely someone will come to their senses. Umm, Ok. I see where this is goi

Re: xmlvalidate with remote schemas

2006-09-26 Thread Steve Loughran
Adrian Herscu wrote: Prashant wrote: And it takes it a very long time to complete (almost ten minutes for 70-80 XML files). Could't you use to locate the XSD schemas locally instead of http download, which perhaps is taking time. Does it work for XML schemas? From the documentation, and

Re: xmlvalidate with remote schemas

2006-09-26 Thread Prashant
Adrian Herscu wrote: Prashant wrote: And it takes it a very long time to complete (almost ten minutes for 70-80 XML files). Could't you use to locate the XSD schemas locally instead of http download, which perhaps is taking time. Does it work for XML schemas? From the

Re: xmlvalidate with remote schemas

2006-09-25 Thread Adrian Herscu
Prashant wrote: > >>And it takes it a very long time to complete (almost ten minutes for >> 70-80 XML files). > > > Could't you use to locate the XSD schemas locally instead of > http download, which perhaps is taking time. Does it work for XML schemas? From the documentation, and I think th

Re: xmlvalidate with remote schemas

2006-09-25 Thread Prashant
>And it takes it a very long time to complete (almost ten minutes for > 70-80 XML files). Could't you use to locate the XSD schemas locally instead of http download, which perhaps is taking time. -Prashant Adrian Herscu wrote: Hi all, I am using the task in a Maven Ant mojo that validate

Re: xmlvalidate with remote schemas

2006-09-25 Thread James Abley
Try turning on grammar caching. http://xml.apache.org/xerces2-j/faq-grammars.html#faq-4 I would imagine by doing something like this: value="org.apache.xerces.parsers.XMLGrammarCachingConfiguration" /> or: value="org.apache.xerces.parsers.XMLGrammarCachingConfiguration" /> Cheers, James

xmlvalidate with remote schemas

2006-09-25 Thread Adrian Herscu
Hi all, I am using the task in a Maven Ant mojo that validates XML files against XSD schemas. http://xml.org/sax/features/validation"; value="true"/> http://apache.org/xml/features/validation/schema"; value="true"/> http://xml.org/sax/features/namespaces"; value="true"/> E