on 02-05-2008 5:38 AM
Hi,
Scenario : To get data entered in the Dynamic table of an online PDF form.
I have got the XML of the PDF form. The problem is with Parsing the XML to get the data.
I am using SAX parser. The code structure is as given,
public class Outercomp
{
getPDFData(IS); // IS is the Inputstream of the PDF XML
// begin Others
public static class inner extends DefaultHandler
{
void getPDFData(InputStream IS)
{
SAXParserFactory SAXfac = SAXParserFactory.newInstance();
SAXParser SAX = SAXfac.newSAXParser();
SAX.parse(IS, new Outer.Inner());
}
void startElement()
{
// some Code
}
}
}
Problem :
I am getting the below exception at calling the method 'parse'.
com.sap.engine.lib.xml.parser.NestedSAXParserException: Generic Exception: -> java.lang.NullPointerexception
I checked both 'IS' and 'new Outer.Inner()', both are not null.
Please give me a solution
Thanks,
Prabhakar
Hi,
Are you extending the DefaultHandler class or are you implementing some interface?
Regards,
Satyajit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
71 | |
26 | |
9 | |
9 | |
7 | |
6 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.