how can i parse a local xml file in the assets folder using pull parser. cant get pull parser to work, always throws io exception. i think i cant get the path to the file, or connecting to the file
help please!
how can i parse a local xml file in the assets folder using pull parser. cant get pull parser to work, always throws io exception. i think i cant get the path to the file, or connecting to the file
help please!
Without any code or stack traces, it is impossible to help you directly.
I would recommend you place the XML in res/xml/
, not in assets/
.
Here is a sample project from one of my books that shows the use of XmlPullParser
to read in an XML resource (res/xml/
).