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?
This same question already asked here and here
There three main type of parsing are there for XML.
Here you can find example for Pull parser
Here you can find example for Sax parser
Here you can find example for All three