Re: XMLParser EndOfFile question

2011-10-18 Thread Ahmet Dakoglu
Jaxb +1 On Mon, Oct 17, 2011 at 3:33 PM, J.Ganesan j.gane...@datastoregwt.comwrote: An alternative way is to use JAXB in the server side, convert XML documents into object hierarchy and fetch them to client by rpc. It is likely to be much faster as string data becomes binary data. Besides,

Re: XMLParser EndOfFile question

2011-10-17 Thread J.Ganesan
An alternative way is to use JAXB in the server side, convert XML documents into object hierarchy and fetch them to client by rpc. It is likely to be much faster as string data becomes binary data. Besides, you get first class objects in the client side. J.Ganesan www.DataStoreGwt.com Persist

XMLParser EndOfFile question

2011-10-14 Thread coffeMan
I am retrieving XML from a servlet and parsing through it. the xml code is one large XML file but on through the servlet. I can parse through it easy and get my results but i am not sure when to stop it. I keep getting NullPointerException that kicks off when it reaches the end. I never know

Re: XMLParser EndOfFile question

2011-10-14 Thread Colin Alworth
NodeList, the return value of getElementsByTagName, has a method called getLength(). The standard way of iterating through the contents would involve using a for loop, and testing that n never reaches getLength() -- You received this message because you are subscribed to the Google Groups

Re: XMLParser EndOfFile question

2011-10-14 Thread coffeMan
Great Thanksill give it a try On Oct 14, 10:35 am, Colin Alworth niloc...@gmail.com wrote: NodeList, the return value of getElementsByTagName, has a method called getLength(). The standard way of iterating through the contents would involve using a for loop, and testing that n never

Re: XMLParser EndOfFile question

2011-10-14 Thread coffeMan
great thanks On Oct 14, 10:35 am, Colin Alworth niloc...@gmail.com wrote: NodeList, the return value of getElementsByTagName, has a method called getLength(). The standard way of iterating through the contents would involve using a for loop, and testing that n never reaches getLength() --

Re: XMLParser EndOfFile question

2011-10-14 Thread Jeffrey Chimene
On 10/14/2011 7:00 AM, coffeMan wrote: I am retrieving XML from a servlet and parsing through it. the xml code is one large XML file but on through the servlet. I can parse through it easy and get my results but i am not sure when to stop it. I keep getting NullPointerException that kicks

Re: XMLParser EndOfFile question

2011-10-14 Thread coffeMan
I got the solution resolved.i am parsing over 11,000 different file types...it is going slow using the DOM Xml Parser...any ideas on how to improve performance? I cannot think of any other way to parse it On Oct 14, 10:40 am, Jeffrey Chimene jchim...@gmail.com wrote: On 10/14/2011 7:00 AM,

Re: XMLParser EndOfFile question

2011-10-14 Thread Jeff Chimene
On 10/14/2011 09:32 AM, coffeMan wrote: I got the solution resolved.i am parsing over 11,000 different file types...it is going slow using the DOM Xml Parser...any ideas on how to improve performance? I cannot think of any other way to parse it Well, first things first: let's clear-up