Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

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.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-27-2008, 03:56 PM
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)
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-02-2008, 01:11 PM
Member
 
Join Date: May 2008
Posts: 4
tomhanks1984 is on a distinguished road
Hi,

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?
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 06-02-2008, 01:59 PM
DonCash's Avatar
Moderator
 
Join Date: Aug 2007
Location: London, UK
Posts: 239
DonCash will become famous soon enoughDonCash will become famous soon enough
We need to see some code...!!
__________________
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.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 06-04-2008, 02:10 PM
Member
 
Join Date: May 2008
Posts: 4
tomhanks1984 is on a distinguished road
Xml parsing
Hi,

I have attached the Xml Schema definition and XML document for you.

Please go through and let me know where the issue exactly is...

Thanks in advance
Attached Files
File Type: zip Test.zip (1.4 KB, 4 views)
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Parsing URL in Java Java Tip java.net 0 04-07-2008 09:14 PM
Using SAXParserFactory for parsing XML Java Tip Java Tips 0 03-20-2008 10:42 AM
Parsing URL Java Tip Java Tips 0 12-26-2007 11:16 AM
Parsing XML documents using DOM JavaForums Java Blogs 0 11-19-2007 05:30 PM
Parsing XML Documents-1 (DOM and SAX) JavaForums Java Blogs 0 11-10-2007 11:41 PM


All times are GMT +3. The time now is 05:13 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org