Sax parsing from web service
Posted
by donald
on Stack Overflow
See other posts from Stack Overflow
or by donald
Published on 2010-03-28T09:00:22Z
Indexed on
2010/03/28
9:03 UTC
Read the original article
Hit count: 237
Hey,
I am trying to parse xml file using Sax parser. let's say xml is like this..
I want to count the number of times b element is present (its variable) And i want this count before parsing, so that I can declare an array of appropriate size.
One way is to run count then separately and other way is dynamic array (List Array) Is there any other better way to do this? Also, Is it possible to make an ArrayList of my class..? because I want an array of type myClass.
© Stack Overflow or respective owner