Hi all
Is there An thing Wrong With this code ....
i am doing parisng XMl from raw folder ....
// Parse the SOAP Response
FileInputStream istream = null;
MyContentHandler myContentHandler = new MyContentHandler
();
try
{
istream = (FileInputStream) context.getResources
().openRawResource(R.raw.response);
/* Get a SAXParser from the SAXPArserFactory. */
SAXParserFactory spf = SAXParserFactory.newInstance();
SAXParser sp = spf.newSAXParser();
/* Get the XMLReader of the SAXParser we created. */
XMLReader xr = sp.getXMLReader();
/* Create a new ContentHandler and apply it to the XML-
Reader*/
xr.setContentHandler(myContentHandler);
Log.v("isizzle", "Calling parse() in ReadTourFromLocal:
"+xr);
/* Parse the xml-data from our URL. */
xr.parse(new InputSource(istream));
Log.v("ISizzle", "Returned from Parse: "+xr);
/* Parsing has finished. */
}catch (Exception e)
{
Log.e("Error", e.getMessage());
}
Can Any Body please give me the response for this If any chandes i
neeed to made for this....
how to get the data from the xmlf file from raw folder...
thanks in advance
urgent plz.....
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---