Comment on Tutorial - XML and Java - Parsing XML using Java Tutorial By totheriver.com



Comment Added by : Lee Murray

Comment Added at : 2010-11-02 03:41:56

Comment on Tutorial : XML and Java - Parsing XML using Java Tutorial By totheriver.com
I have modified this example a bit and I'm using a different xml file. I am getting the following error:

[Fatal Error] subject.xml:4:233: The entity "rsquo" was referenced, but not declared.
org.xml.sax.SAXParseException: The entity "rsquo" was referenced, but not declared.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
at DomParserExample2.parseXmlFile(DomParserExample2.java:42)
at DomParserExample2.runExample(DomParserExample2.java:24)
at DomParserExample2.main(DomParserExample2.java:115)
Exception in thread "main" java.lang.NullPointerException
at DomParserExample2.parseDocument(DomParserExample2.java:54)
at DomParserExample2.runExample(DomParserExample2.java:27)
at DomParserExample2.main(DomParserExample2.java:115)


Anyone know how to solve this?


View Tutorial



Ask a Question

Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. we are getting an error saying that " the sta
View Tutorial          By: chaitra at 2014-03-20 10:53:02

2. Thanks alot. Really great and simple example!
View Tutorial          By: leo at 2011-06-06 13:58:32

3. Very concise, but it would be more helpful without
View Tutorial          By: Randy at 2010-11-17 14:16:01

4. its is good..I am developing a Form based applicat
View Tutorial          By: Bhavani at 2010-10-18 01:39:41

5. I get an error returned saying the SMPT server req
View Tutorial          By: Christian Peut at 2011-04-04 04:35:51

6. not satisfied friend. for Socket class it asks to
View Tutorial          By: Gaurav at 2009-01-28 07:34:42

7. Thanks for posting the JAVA source code!!
View Tutorial          By: Coder at 2010-07-29 11:41:10

8. no output is shown
View Tutorial          By: shubham bansal at 2015-02-21 15:36:31

9. NICE EXPLANATION >>>THANK UUUUUU
View Tutorial          By: PraVeen at 2012-07-05 10:12:25

10. what about (!isset)?? the isset with "!"
View Tutorial          By: bali web design at 2011-04-21 12:51:38