which one to use for parsing a document?
i used this
System.setProperty("javax.xml.parsers.DocumentBuilderFactory","net.sf.saxon.dom.DocumentBuilderFactoryImpl");

but still it has the problem.is there anyother way to use dom so that it can be done to get the line number?