Hey I am adding here another demo for parsing XML content:
We are going to parse xml content with:
You can download demo app here:
https://drive.google.com/file/d/0B0mH97AUwQqhVER3c3EteWI0ZVE/edit?usp=sharing
We are going to parse xml content with:
- DOM Parser
- SAX Parser
- XMLPullParser
We will fetch XML content from below url:
And XML content will be something like below xml:
<?xml version="1.0" encoding="UTF-8"?>
<COMPANY name="XYZ Soft Solution">
<COMPANY name="XYZ Soft Solution">
<EMPLOYEE>
<FIRSTNAME>Rahul</FIRSTNAME>
<LASTNAME>Sharma</LASTNAME>
<EMAIL>rs@xyz.com</EMAIL>
<DESIGNATION>Soft Developer</DESIGNATION>
<ADDRESS>
<STREET>MG road</STREET>
<CITY>Pune</CITY>
<STATE>M.H</STATE>
<ZIPCODE>450001</ZIPCODE>
</ADDRESS>
</EMPLOYEE>
</COMPANY><FIRSTNAME>Rahul</FIRSTNAME>
<LASTNAME>Sharma</LASTNAME>
<EMAIL>rs@xyz.com</EMAIL>
<DESIGNATION>Soft Developer</DESIGNATION>
<ADDRESS>
<STREET>MG road</STREET>
<CITY>Pune</CITY>
<STATE>M.H</STATE>
<ZIPCODE>450001</ZIPCODE>
</ADDRESS>
</EMPLOYEE>
https://drive.google.com/file/d/0B0mH97AUwQqhVER3c3EteWI0ZVE/edit?usp=sharing
No comments:
Post a Comment