Have you looked at vtd-xml? according to teh web site, it is 10x
faster than DOM, 2x faster than SAX, and natively supports XPath, and
is a lot more memory efficient than SAX

http://vtd-xml.sf.net

On Feb 7, 3:08 am, "Emre A. Yavuz" <eayl...@hotmail.com> wrote:
> Thanks for all the responses ...
>
> Cheers,
>
> Emre
>
>
>
>
>
> > Date: Sat, 6 Feb 2010 11:18:44 -0800
> > Subject: [android-developers] Re: DOM, SAX or XMLPullParser ? Any 
> > suggestions ?
> > From: jotobje...@gmail.com
> > To: android-developers@googlegroups.com
>
> > On Feb 5, 5:45 am, "Emre A. Yavuz" <eayl...@hotmail.com> wrote:
> > > Hi,
>
> > > We need to convert XML messages to a stream or string which can then be 
> > > sent via sockets.
>
> > You can read one XML input with XmlPullParser (or DOM or SAX) and
> > write it at the same time to another stream with XMLSerializer - see
> > XmlPullParserFactory.newSerializer().
>
> > Regarding your other question, your code controls the parsing thread
> > with XmlPullParser, but with SAX the parser controls the thread while
> > your DocumentHandler waits for callbacks.
>
> > --
> > 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
>
> _________________________________________________________________
> Introducing Windows® phone.http://go.microsoft.com/?linkid=9708122- Hide 
> quoted text -
>
> - Show quoted text -

-- 
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

Reply via email to