I am trying to parse the normal html file using SAX parser.
SAXBuilder builder2 = new SAXBuilder();
try {
Document sdoc = (Document)builder2.build(readFile);
NodeList nl=sdoc.getElementsByTagName("body");
System.out.println("nodelist>>>>>>>>>>>"+nl.getLength());
} catch (JDOMException e1) {
e1.printStackTrace();
}
but i am getting the exception
Open quote is expected for attribute "{1}" associated with an element type "class".
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.
Thanks in advance.