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
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
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
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program 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
Archived Comments
1. This example really works and help a lot me to dis
View Tutorial By: Monu Kumar at 2010-03-30 09:26:23
2. thanks brother
View Tutorial By: shakeel at 2012-09-12 16:21:03
3. using a same name ,return type and parameter type
View Tutorial By: sam at 2011-06-24 15:13:34
4. I want to use the same code in c++,
Can a
View Tutorial By: vijay at 2009-09-26 00:47:02
5. nativeFinalize: Error closing Handle 6
and
View Tutorial By: yash at 2008-05-16 17:43:42
6. ans to 23:
by using gdb(GNU deb
View Tutorial By: Bhargav at 2011-11-02 13:23:51
7. Its a peshak site
View Tutorial By: SANIJ at 2010-01-06 22:40:31
8. hi iam new to java i need simple java programs pls
View Tutorial By: naga at 2010-10-06 03:45:18
9. if time out at step 6*** Exception is occure
View Tutorial By: Bharat at 2011-08-17 10:42:23
10. good one
View Tutorial By: vij at 2009-06-03 16:00:12