RE: Avoiding DOM Reparse

2007-12-19 Thread Michael Glavassevich
From: Michael Glavassevich [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, December 19, 2007 2:00 PM > > To: j-users@xerces.apache.org > > Subject: RE: Avoiding DOM Reparse > > > > Windy, > > > > Since you mentioned DOMLocator I assume you're doing the

RE: Avoiding DOM Reparse

2007-12-19 Thread Windchime
age- > From: Michael Glavassevich [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 19, 2007 2:00 PM > To: j-users@xerces.apache.org > Subject: RE: Avoiding DOM Reparse > > Windy, > > Since you mentioned DOMLocator I assume you're doing the validation using

RE: Avoiding DOM Reparse

2007-12-19 Thread Michael Glavassevich
even using the DOMLocator? > > -Windy > > > -Original Message- > > From: Michael Glavassevich [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, December 19, 2007 9:10 AM > > To: j-users@xerces.apache.org > > Subject: RE: Avoiding DOM Reparse > > > > H

RE: Avoiding DOM Reparse

2007-12-19 Thread Windchime
To: j-users@xerces.apache.org > Subject: RE: Avoiding DOM Reparse > > Hi Windy, > > There's a sample that comes with Xerces called dom.DOMAddLines [1] which > shows how you can add line/column information to the DOM using > Node.setUserData() [2] and read it back with Node.getUserDa

RE: Avoiding DOM Reparse

2007-12-19 Thread Michael Glavassevich
ROTECTED] > > Sent: Tuesday, December 11, 2007 10:24 AM > > To: j-users@xerces.apache.org > > Subject: Re: Avoiding DOM Reparse > > > > Hi Windy, > > > > Before calling normalizeDocument() you should be able to set the > > "http://apache.org/xml/properties/i

RE: Avoiding DOM Reparse

2007-12-19 Thread Windchime
schema validation issue)? -Windy > -Original Message- > From: Michael Glavassevich [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 11, 2007 10:24 AM > To: j-users@xerces.apache.org > Subject: Re: Avoiding DOM Reparse > > Hi Windy, > > Before calling normal

Re: Avoiding DOM Reparse

2007-12-11 Thread Jeff Greif
If you have a pretty good idea of the set of schemas that will be needed before reading the instance documents, you could preparse those schemas into a GrammarPool associated with the instance document parser. That way, most or all of the documents could be validated as they are read (the first ti

Re: Avoiding DOM Reparse

2007-12-11 Thread Michael Glavassevich
Hi Windy, Before calling normalizeDocument() you should be able to set the "http://apache.org/xml/properties/internal/grammar-pool"; property on the DOMConfiguration with your grammar pool. Alternatively you could use the JAXP Validation API [1]. If you pass the PSVI-aware version of the DOM to th

Avoiding DOM Reparse

2007-12-11 Thread Windchime
I am reading lots of XML documents that need schema validation. However, I don't know what the schema (actually grammar pool) looks like until long after the documents are read. Finally, I want to have full access to the PSVI information. What I would like to know is, is there any way to perform