1

XML parsing in android application

view story
linux-howto

http://stackoverflow.com – I wrote this code to parse an xml string, but it did not work. there is no errors but it did not give any output. My xml String: String xml = "<ArrayOfString>" + "<string>{" + "categoryId"+":1," + "Title" +":"+"Rock"+"," + "songs" +":" +" null}</string>" + "</ArrayOfString>"; the code : try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); Document doc = db.parse(xml); doc.getDocumentElement().normalize(); NodeList nodeList = doc.getElementsByTagNa (HowTos)