-4

I write an android client, and need to access Web server. Then back to XML, android client read XML data. Access web URL like: http://xxxx.com/Mobile/MobileAjax.aspx?pAjaxType=Login&pUserID=adminsys&pPwd=123456

Access XML:

<?xml version="1.0" encoding="UTF-8"?>
<LoginInfo>
<Islogin>true</Islogin>
<UserID>AdminSys</UserID>
<UserName>admin</UserName>
<OrgID>100</OrgID>
<OrgName>organizer</OrgName>
</LoginInfo>

How to write the code about get XML and analyze XML information?

Rajesh Rajaram
  • 3,271
  • 4
  • 29
  • 48
Li Che
  • 727
  • 10
  • 24
  • There are several examples already available. For instance: http://www.androidhive.info/2011/11/android-xml-parsing-tutorial/. Do a little search before asking people to do it for you. – Siddharth Lele Nov 09 '12 at 06:30
  • possible duplicate of [Android xml parsing](http://stackoverflow.com/questions/3492034/android-xml-parsing) – DNA Nov 10 '12 at 20:24

1 Answers1

0

This same question already asked here and here

There three main type of parsing are there for XML.

  1. Pull parser
  2. Sax parser
  3. Dom parser

Here you can find example for Pull parser

Here you can find example for Sax parser

Here you can find example for All three

Community
  • 1
  • 1
Rajesh Rajaram
  • 3,271
  • 4
  • 29
  • 48