Hi Kevin, Which is more faster and easier to use?.
I need to Parse a XML. That file contains more than 12000 lines. First i tried to use DOM but it is very slow. It is taking more than 10 minutes tom parse. Now i'm trying to use SAX. Which one is very fast whether SAX or XMLPull Parser ?.. On Tue, Feb 2, 2010 at 10:40 AM, Kevin Duffey <andjar...@gmail.com> wrote: > Hari, as far as I know you'd usually parse the document into an object, do > any updating of the object, then write it back out overwriting the previous > version. SAX doesn't store the xml in memory, it streams it, like xmlpull > does and you assemble an object tree from the xml as your needs require. You > don't have to assmble an object tree that is identical to the xml as well. > This is probably part of the reason DOM is so slow and requires as much as > 8x the XML size in memory to store. Frankly, I'd go with xmlpull. It's > vastly easier to work with and generally as fast if not faster than sax. > > > On Mon, Feb 1, 2010 at 8:34 PM, Sasikumar.S <sasikumar.it1...@gmail.com>wrote: > >> I don't know Hari. >> >> >> On Tue, Feb 2, 2010 at 10:03 AM, hari <harish.cse...@gmail.com> wrote: >> >>> >>> >>> hi Sasikumar.S do you know how to update xml file using Sax parser. >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Android Developers" group. >>> To post to this group, send email to android-developers@googlegroups.com >>> To unsubscribe from this group, send email to >>> android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> >>> For more options, visit this group at >>> http://groups.google.com/group/android-developers?hl=en >>> >> >> >> >> -- >> Thanks & Regards >> Sasikumar.S >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to android-developers@googlegroups.com >> To unsubscribe from this group, send email to >> android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en >> > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Thanks & Regards Sasikumar.S -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en