Tell me more ×  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
<!ENTITY wiki ''>  and in the root element   This means
<swivt:Subject rdf:about="&wiki;Main_Page">   <swivt:Subject
rdf:about="">  I have tried using JDOM and the standard Java
DOM. The code I think is relevant here is for standard DOM:
DocumentBuilderFactory factory =
DocumentBuilderFactory.newInstance();
factory.setFeature("", false);  and for JDOM  SAXBuilder builder
= new SAXBuilder();     builder.setExpandEntities(false);
//Retain Entities     builder.setFeature("", false);  But the
Entities are resolved throughout the whole xml document none the
less. Am I missing something? Hours of search has only led me to
the 'ExpandEntities' command