I've always thought Java's options for this are cumbersome but what
can you do.  They are generally fairly speedy unless you are dealing
with huge XML documents.  I usually go with an XmlPullParser because I
think it's slightly less annoying to code than the SAXParser.

Or, if it is generally small chunks of simple XML (no namespace
hassles and just a handful of elements), I will sometimes simply read
it into a String and substring values out of it by element name.




On Aug 11, 3:31 pm, Neilz <[email protected]> wrote:
> Hi. In my new project I retrieve an XML file from a server. I want to
> convert this into Java objects.
>
> Now, clearly searching on this brings up a lot of solutions and
> topics, but some of them don't seem to be fully Android compatible.
> Also, some are over complex, with automatic class creation from
> annotations. I prefer to write my own classes in this case.
>
> What technology would you recommend I look at to achieve this in
> Android?
>
> Thanks.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to