title: Parsing html with SAX parser
body: <p>I am trying to parse the normal html file using SAX parser.</p>
  
  <pre><code>SAXBuilder builder2 = new SAXBuilder();
           try {
              Document sdoc = (Document)builder2.build(readFile);
              NodeList nl=sdoc.getElementsByTagName("body");
              System.out.println("nodelist&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;"+nl.getLength());
  
          } catch (JDOMException e1) {
              e1.printStackTrace();
          }
  </code></pre>
  
  <p>but i am getting the  exception </p>
  
  <pre><code>Open quote is expected for attribute "{1}" associated with an  element type  "class".
  </code></pre>
  
  <p>can anyone please tell me why i am getting this exception, the html document is well formed and it has all the open and close tags properly.</p>
  
  <p>Thanks in advance.</p>