Disable XML Entity resolving in JDOM / DOM
问题 I am writing a Java application for the postprocessing of XML files. These xml files come from an RDF-Export of a Semantic Mediawiki, so they have rdf/xml syntax. My problem is the following: When I read the xml file, all the entities in the file get resolved to their value which is specified in the Doctype. For example in the Doctype I have <!DOCTYPE rdf:RDF[ <!ENTITY wiki 'http://example.org/smartgrid/index.php/Special:URIResolver/'> .. ]> and in the root element <rdf:RDF xmlns:wiki="&wiki;