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



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. It encourage the learners

Learners

View Tutorial          By: sureshkumar p at 2010-12-22 04:13:04

2. There is better way to fix this problem..
<

View Tutorial          By: Sundara Kaku at 2011-07-23 10:38:52

3. very good introduction.thanx to the authr of this
View Tutorial          By: anjali at 2011-06-17 02:14:48

4. i want to study java
View Tutorial          By: doshyo at 2007-12-13 07:41:03

5. Thanks this article helped (just needed to know wh
View Tutorial          By: sushi at 2008-12-17 08:09:51

6. very excellent1!!!!!!!!!!!!!!!!!!!!!!!!!!!
View Tutorial          By: santosh manchala at 2010-10-10 13:07:07

7. Even i got d same error. can u plz tell me where t
View Tutorial          By: Priya at 2011-03-14 12:16:54

8. how this program is work , please, tell
View Tutorial          By: rohit kumar at 2015-10-30 12:22:05

9. well explained.. Thanq :)
View Tutorial          By: Aparna at 2013-03-01 06:08:35

10. Yes Left shift result is wrong its like
5

View Tutorial          By: Ragunath k at 2010-05-10 04:45:33