wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes Parsing an XMl file using apache xerces parser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Parsing an XMl file using apache xerces parser" Watch "Parsing an XMl file using apache xerces parser" New topic
Author

Parsing an XMl file using apache xerces parser

satish satish
Greenhorn

Joined: Nov 25, 2002
Posts: 3
When i try to parse An xml file i get following error .
Exception in thread "main" java.lang.NullPointerException
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1094)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
My Code goes something like this
InputSource is = new InputSource(new FileReader (arrGDCFolders[i] + DIR_DAT+arrGDCFiles[k]));
parser.parse(is , new UploadController().new MtnSAXParserHandler());
Gergely Dombi
Greenhorn

Joined: Jan 12, 2003
Posts: 11
pls post the line no 1094 to see what throws the
NPE
 
wood burning stoves
 
subject: Parsing an XMl file using apache xerces parser