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. fitst read fully and put comments
View Tutorial          By: prasant at 2009-10-07 06:16:19

2. Thanks for the explicit introduction!
View Tutorial          By: yemi at 2010-01-13 03:28:14

3. Hi,,
I dont have a problem Insert, Update a

View Tutorial          By: Yavuz at 2010-09-01 14:15:02

4. Thanks for good atricle. But this code will always
View Tutorial          By: Binod Suman at 2009-05-28 09:40:48

5. Very helpful.
View Tutorial          By: Krishna at 2012-06-14 10:25:00

6. Good one.....
View Tutorial          By: Ratnam.. at 2012-07-03 07:11:26

7. can anyone please provide me how to map the column
View Tutorial          By: Gaurav Balyan at 2012-01-03 11:09:26

8. not work
View Tutorial          By: kkbb at 2011-03-12 03:52:06

9. Hi santhosh,
Try it ou

View Tutorial          By: Kiran at 2011-12-14 04:31:29

10. It's very use full to me ....
Thans a lot..

View Tutorial          By: Raxit at 2011-12-30 03:57:03