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
: Problem validating using XMLGrammarPool with different Grammars with no namespace Hi Adam, If you want to debug it I would suggest putting breakpoints inside of SoftReferenceGrammarPool [1]. Technically this grammar pool could dump some of the grammars from the cache later (and then reload them

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
} catch (final URISyntaxException e) { > // Preloading is just for convenience > logger.warn("Error trying to preload > grammar file "+grammar.toExternalForm(), e); > } > } >} > > > -- > Bill Michell > Developm

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
} -- Bill Michell Development Team Leader, Broadcast Platforms, BBC FM&T (Journalism). -Original Message- From: Adam Retter [mailto:[EMAIL PROTECTED] Sent: 10 November 2008 11:23 To: j-users@xerces.apache.org Subject: Problem validating using XMLGrammarPool with different

Problem validating using XMLGrammarPool with different Grammars with no namespace

2008-11-10 Thread Adam Retter
Hi Chaps, I am having some problems with XMLGrammarPool and I would like to confirm the cause of this. I think that it is because I have a number of different XML documents that use different XML Schemas, and these all use the same namespace i.e. no namespace. When I create a new XMLGrammarPool