You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:
have access to post topics
communicate privately with other members (PM)
not see advertisements between posts
have the possibility to earn one of our surprises if you are an active member
access many other special features that will be introduced later.
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)
Am using dom parser to parse XML document. Am getting the following error while executing the parser class.
"Element type FirstName is not declared".
Can one tell me what causes this problem?
__________________ Did this post help you? Please To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. me! To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.