I get the following error when trying to run my java program (it should read the xml file and print some of the content).
From what I understand, there is an unreferenced object that is not part of the xml standard, so my question is; How can I fix this problem?
Thanks,
[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)
java xml entity entityresolver
MMAMail.com
source share