Breezy wrote:
> Is there any good pre-defined classes that make downloading an XML
> file off the internet a snap?  What about txt files, anything pretty
> easy and "light"?

URLConnection and the Apache HttpClient classes are both in Android.
Both are used extensively in regular Java, outside of Android, as well.

You will find URLConnection tutorials here:

http://www.exampledepot.com/egs/java.net/pkg.html

And HttpClient examples here:

http://hc.apache.org/httpcomponents-client/examples.html

> On top of that, how would I go about parsing an XML file?  Pulling
> line by line off of a txt file isn't hard, but I think an XML file
> would be more organized.  Any good tutorials on parsing an XML?

Android has DOM, SAX, and XmlPullParser. The first two are (API-wise)
straight out of standard Java, so there are many books and tutorials
available, such as those at:

http://www.exampledepot.com/egs/javax.xml.parsers/pkg.html

XmlPullParser is described at:

http://xmlpull.org/

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Published!

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