title: How to parse xml from sdcard using sax parser in android?
body: <p>I have an issue while parsing a local xml file using sax parser . It throwing an exception while parsing.</p>
  
  <pre><code> *org.apache.harmony.xml.ExpatParser$ParseException: At line 7, column 247: not well-formed (invalid token)
  org.apache.harmony.xml.ExpatParser.parseFragment(ExpatParser.java:507)
  org.apache.harmony.xml.ExpatParser.parseDocument(ExpatParser.java:492)
  org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:308)
  org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:264)*
  
  
  try {
          String path = Environment.getExternalStorageDirectory() + "/FlightGuide/"+stateName+"/contents.xml"; 
          File file = new File(path);
          SAXParserFactory parserFactory=SAXParserFactory.newInstance();
          SAXParser saxParser=parserFactory.newSAXParser();
          XMLReader reader=saxParser.getXMLReader();
          AirportHandler airportHandler = new AirportHandler();
          reader.setContentHandler(airportHandler);
          reader.parse(new InputSource(new InputStreamReader(new FileInputStream(file))));
          statePackage = airportHandler.getpaStatePackage();
      } catch (MalformedURLException e) {
          e.printStackTrace();
      } catch (ParserConfigurationException e) {
          e.printStackTrace();
      } catch (SAXException e) {
          e.printStackTrace(); 
      } catch (IOException e) {
  
          e.printStackTrace();
      }
  </code></pre>
  
  <p>Please can any one figure out mistake I am doing? And is there any other method to parse local xml files? If so give me some sample code.</p>
  
  <p>Thanking you,
  Srinivas</p>