I am writing an application that will read XML from webservice (possibly through kSOAP2). I am pretty pleased with SAX parsing since I did XML analysis of iPhone applications.
Unfortunately, the webservice is not yet publicly available, so for initial testing, I have some XML files that I need to parse. In this early phase of dev, I just need to read the XML from the files and pass it to the XML parser
Xml.parse(this.testXML, root.getContentHandler());
How I read the XML from a file / resource into a string to jump to this method. I want to hack and test the parser, but this simple step holds me back.
thanks
android xml file parsing
Martins
source share