Thread: xml parsing
View Single Post
  #1 (permalink)  
Old 05-27-2008, 04:56 PM
gaurav65176 gaurav65176 is offline
Member
 
Join Date: May 2008
Posts: 1
gaurav65176 is on a distinguished road
xml parsing
i am getting null pointer exception when i tried to parse the xml using DOMParser i have checked the xsd file my xml is exactly the same. can anybody solve this problem its realy urgent and dont known where the error is. the code which iam using is
lsprSaxXmlParser=new DOMParser();
lsprSaxXmlParser.parse(new inputsource(new StringReader (StringBuffer.toString)));
i checked string buffer string reader and inputsource all of them has values in it
iam getting this error
java.lang.NullPointerException
at org.apache.xerces.framework.XMLParser.parse(XMLPar ser.java:1094)
Reply With Quote
Sponsored Links