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



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. Thanks a ton. Was struggling to get the ListView u
View Tutorial          By: Avinash at 2012-09-25 12:25:12

2. Can I use my Nokia 6300 as my GSM Modem???? Please
View Tutorial          By: deKi at 2009-03-17 03:54:59

3. Explanation was good and easily comprehendable.
View Tutorial          By: Moin Adil at 2009-06-17 04:18:56

4. This program not running on my system so give some
View Tutorial          By: Ajay Kumar Barik at 2009-06-15 02:28:47

5. nice to learn abt it
View Tutorial          By: aice at 2012-08-25 12:49:35

6. wow...great MAN
View Tutorial          By: Er Sounderarajan at 2013-03-13 07:29:58

7. how doeas peek work in a c++ program
View Tutorial          By: odwa at 2008-02-29 02:44:19

8. could you plz tell me how to run this all programs
View Tutorial          By: abhishek at 2010-10-27 00:08:57

9. hi i unable to retrive am getting below excepti
View Tutorial          By: vignesh at 2015-03-25 17:14:58

10. Muchas gracias por compartir informacion. :)
View Tutorial          By: Anonymous at 2009-05-21 08:48:47