RE: Problem validating using XMLGrammarPool with different Grammars with no namespace

2008-11-11 Thread Michael Glavassevich
idator attempts to use > > > the schema 1.xsd. > > > > > > I may have missed something? Or there may be another approach that I > > > have not seen? > > > > > > Otherwise, I would be happy to work with the Xerces team to fix this > > > problem

RE: Problem validating using XMLGrammarPool with different Grammars with no namespace

2008-11-11 Thread Adam Retter
e being loaded > once and then re-loaded from the Cache? > > Thanks Adam. > > From: Michael Glavassevich [mailto:[EMAIL PROTECTED] > Sent: 11 November 2008 12:29 > To: j-users@xerces.apache.org > Cc: Adam Retter > Subject: RE: Problem validating using XMLGrammarPool with di

RE: Problem validating using XMLGrammarPool with different Grammars with no namespace

2008-11-11 Thread Michael Glavassevich
om: Michael Glavassevich [mailto:[EMAIL PROTECTED] > Sent: 11 November 2008 12:29 > To: j-users@xerces.apache.org > Cc: Adam Retter > Subject: RE: Problem validating using XMLGrammarPool with different > Grammars with no namespace > > Hi Adam, > > Try using the SchemaFac

RE: Problem validating using XMLGrammarPool with different Grammars with no namespace

2008-11-11 Thread Adam Retter
Glavassevich [mailto:[EMAIL PROTECTED] Sent: 11 November 2008 12:29 To: j-users@xerces.apache.org Cc: Adam Retter Subject: RE: Problem validating using XMLGrammarPool with different Grammars with no namespace Hi Adam, Try using the SchemaFactory.newSchema() method. The one which takes no

RE: Problem validating using XMLGrammarPool with different Grammars with no namespace

2008-11-11 Thread Michael Glavassevich
collide - I know I am not the only person who has > experiences issue. > > I would propose that the Schemas location should be used for > comparison, falling back to the namespace if no location exists. Thoughts? > > How can we move this forward please? > > > Thanks

RE: Problem validating using XMLGrammarPool with different Grammars with no namespace

2008-11-11 Thread Adam Retter
el Glavassevich [mailto:[EMAIL PROTECTED] Sent: 10 November 2008 16:56 To: j-users@xerces.apache.org Subject: RE: Problem validating using XMLGrammarPool with different Grammars with no namespace Hi Adam, "Adam Retter" <[EMAIL PROTECTED]> wrote on 11/10/2008 11:00:53 AM: > Than

RE: Problem validating using XMLGrammarPool with different Grammars with no namespace

2008-11-10 Thread Michael Glavassevich
Hi Adam, "Adam Retter" <[EMAIL PROTECTED]> wrote on 11/10/2008 11:00:53 AM: > Thanks for the reply Michael, > > Regarding the JAXP Validation API - I don't really understand how I > can use that with XMLReader for document parsing and validation > using SAX. Any ideas? Start with a SAXParserFact

RE: Problem validating using XMLGrammarPool with different Grammars with no namespace

2008-11-10 Thread Adam Retter
particular namespace. Thanks From: Michael Glavassevich [mailto:[EMAIL PROTECTED] Sent: 10 November 2008 14:36 To: j-users@xerces.apache.org Cc: Bill Michell Subject: RE: Problem validating using XMLGrammarPool with different Grammars with no namespac

RE: Problem validating using XMLGrammarPool with different Grammars with no namespace

2008-11-10 Thread Michael Glavassevich
> All documents come in through one entry point in a Servlet (so > effectively multithreaded) > > > Thanks Adam. > > > > -Original Message- > From: Bill Michell [mailto:[EMAIL PROTECTED] > Sent: 10 November 2008 12:03 > To: j-users@xerces.apache.org &g

RE: Problem validating using XMLGrammarPool with different Grammars with no namespace

2008-11-10 Thread Adam Retter
chell [mailto:[EMAIL PROTECTED] Sent: 10 November 2008 12:03 To: j-users@xerces.apache.org Subject: RE: Problem validating using XMLGrammarPool with different Grammars with no namespace I hit this crazy bit of schema design myself. If you create one parser per schema document, you can give eac

RE: Problem validating using XMLGrammarPool with different Grammars with no namespace

2008-11-10 Thread Bill Michell
I hit this crazy bit of schema design myself. If you create one parser per schema document, you can give each one its own caching grammar pool, and re-use them from document to document. Of course, things are even more fun if you are parsing from multiple threads. It is possible to share the cac