I need to parse to following xml into output like :
String id="3"
String name="str1"
String path="/mnt/sdcard/path2"
String type="2"
String desc="des3)"
How can I accomplish this in android? Thanks.
<xmldump>
<mfs id="3" name="str1" path="/mnt/sdcard/path2" type="2" desc="des3)" />
<mfs id="1" name="st2" path="/mnt/sdcard/path1" type="2" desc="des2" />
<mfs id="2" name="stvr3" path="/mnt/sdcard/path3" type="2" desc="des1" />
</xmldump>
This link should get you started:
http://www.java-samples.com/showtutorial.php?tutorialid=152
i think this will help you a lot. It also helps me a lot too..Give it a try! http://www.coderzheaven.com/2011/12/24/parsing-xml-in-android-a-simple-example/
look example given at http://www.ibm.com/developerworks/xml/library/x-androidxml/index.html?ca=drs-
This link sample example for xml. http://www.roseindia.net/xml/dom/CreatXMLFile.shtml