Create xml on the fly from a string
问题 This is correct program and now running fine :) thank you sir I am new to Android. I have a String that contains XML format data (its an XML document) that servers returns to me. I want to parse it in Android with XmlResourceParser but it only accepts xml documents that are stored on your device e.g: XmlResourceParser xmlResourceParser = getResources().getXml( R.xml.new_xml); "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"+ "<ItemInfo>" + "<Status>Success</Status>" + "<Reason></Reason>" + "