Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your profile (name, country/region, and company) is displayed to the public and will accompany any content you post. You may update your IBM account at any time.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Using XML and JSON with Android, Part 1: Explore the benefits of JSON and XML in Android applications

Consider both XML and JSON data-interchanges formats for use on the Android platform


Return to article



Text version the parsed XML data on a mobile phone screen (Figure 4)

XMLvsJSON
      [Parse XML]  [Parse JSON file]
XML parsed data.
There are [20] status updates.

Date: Thu Apr 29 05:25:29 +0000 2010
Post: Wrapping up new articles on JSON for
Android programmers...

Date: Thu Apr 27 16:39:10 +0000 2010
Post: taking photos with Android's built-in camera.
And a hidden (but easy) puzzle. http://lnkd.in/
cbwEGF

Date: Thu Apr 22 20:20:23 +0000 2010
Post: Launched beta version of iPhone app today
for a client.

Date: Thu Apr 19 15:53:13 +0000 2010
Post: There is a worm in Apple's iOS 4.0 http://
lnked.in6ajf3m

Date: Thu Apr 17 23:20:48 +0000 2010
Post: Interesting development in iPad land -- 
don't bring it to Israel. http://lnkd.in/b7VPxR

Return to article