Android applications are built with the intention of being able to handle various file formats. However, when you need to parse a file, there are some steps that you need to complete in order for the application to work.
The first step is to create an XML parser. This will allow your application to know what data is in the file and how it should be parsed. To create an XML parser, add the following lines of code into your Android project:
private static final String TAG = "XMLParser";
private static final String VERSION = "1.0";
private static final int VERSION_CODE = 1;
public class XMLParser extends DefaultObject {
public void setVersion(int version) {
this.version = version;
#BBD0E0
»