RE: XPATH outOfMemory while evaluating large XML files.

2006-01-16 Thread Enric Jaen
On Mon, 16 Jan 2006 [EMAIL PROTECTED] wrote: Hello Andreas, > > for a brief introduction into StAX you could look at "An introduction into > StAX" > by Harold, E. R., see "http://www.xml.com/pub/a/2003/09/17/stax.html";. > > StAX does not build a tree, but you can build the Dom-tree from the StA

RE: XPATH outOfMemory while evaluating large XML files.

2006-01-16 Thread Andreas . Rulle
Hello Enric, for a brief introduction into StAX you could look at "An introduction into StAX" by Harold, E. R., see "http://www.xml.com/pub/a/2003/09/17/stax.html";. StAX does not build a tree, but you can build the Dom-tree from the StAX events. A very simple, but runtime consuming approach wou

RE: XPATH outOfMemory while evaluating large XML files.

2006-01-16 Thread Enric Jaen
On Mon, 16 Jan 2006 [EMAIL PROTECTED] wrote: > Hello Enric, > > depending on the needs of your application it may be an alternative > approach to combine a Stax-compliant (JSR-173) parser like woodstox (see > http://woodstox.codehaus.org/) and XPath > > 1. Parse the tree with woodstox. > > 2.

RE: XPATH outOfMemory while evaluating large XML files.

2006-01-16 Thread Andreas . Rulle
Hello Enric, depending on the needs of your application it may be an alternative approach to combine a Stax-compliant (JSR-173) parser like woodstox (see http://woodstox.codehaus.org/) and XPath 1. Parse the tree with woodstox. 2. For small subtrees build a (J)Dom-Tree. 3. Use XPath to se

RE: XPATH outOfMemory while evaluating large XML files.

2006-01-14 Thread Enric Jaen
On Fri, 13 Jan 2006, Karr, David wrote: > How many nodes is your Xpath expression returning? If you're > essentially returning the vast majority of the nodes in the file, then > you're probably using the wrong tool for this job. That is, don't use > Xpath for this. The curious think is that m

RE: XPATH outOfMemory while evaluating large XML files.

2006-01-13 Thread Paul DeCoursey
I'd say you are probably using the wrong tool. XPAth and SAX don't really work together. You should look at XPP, http://www.extreme.indiana.edu/xgws/xsoap/xpp/ it's quite fast, faster than SAX, and low overhead. Or perhaps a XML Database solution. Paul Quoting "Karr, David" <[EMAIL PROTECTED]>:

RE: XPATH outOfMemory while evaluating large XML files.

2006-01-13 Thread Karr, David
How many nodes is your Xpath expression returning? If you're essentially returning the vast majority of the nodes in the file, then you're probably using the wrong tool for this job. That is, don't use Xpath for this. > -Original Message- > From: Enric Jaen [mailto:[EMAIL PROTECTED] >

Re: XPATH outOfMemory while evaluating large XML files.

2006-01-13 Thread Enric Jaen
>If you think there is bugs in the impl of XPath, please open a bug report >at https://issues.apache.org/jira/secure/Dashboard.jspa >and attach a valid test case that can demonstrate the problem. I don't think is a bug. I rather think that XPATH builds a DOM tree when returns a NodeSet (please c

Re: XPATH outOfMemory while evaluating large XML files.

2006-01-13 Thread Christine Li
PROTECTED] Enric Jaen <[EMAIL PROTECTED]> 13/01/2006 02:52 AM To xalan-j-users@xml.apache.org cc Subject XPATH outOfMemory while evaluating large XML files. Hello, I got an OutOfMemory when I evaluate an XPATH _expression_ a large XML file. I am using thi

XPATH outOfMemory while evaluating large XML files.

2006-01-13 Thread Enric Jaen
Hello, I got an OutOfMemory when I evaluate an XPATH expression a large XML file. I am using this code: XPathFactory factory = XPathFactory.newInstance(); XPath xpath = factory.newXPath(); InputSource entities_is=new InputSource("file.xml"); XPathExpression xpathE