Monthly Archives: August 2013

SAX parser using AsyncTask to read xml file on net

SAX parser uses less memory than DOM parser, so better for mobiles. Sources were stackoverflow and android developer site but links now lost. This is the laptops.xml file placed on a remote server. <?xml version=”1.0″ encoding=”UTF-8″?> <laptops> <laptop model = … Continue reading

Posted in Android | 3 Comments

XML pull parser reading asset

This is my example pulled from a few sources (probably stackoverflow but I no longer have the links).  Put employees.xml in assets folder of project. <?xml version=”1.0″ encoding=”UTF-8″?> <employees> <employee> <id>2163</id> <name>Kumar</name> <department>Development</department> <type>Permanent</type> <email>kumar@tot.com</email> </employee> <employee> <id>6752</id> <name>Siva</name> <department>DB</department> … Continue reading

Posted in Android | Leave a comment