Have you tried:

DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();
dbFactory.setExpandEntityReferences(false);
DocumentBuilder builder = dbFactory.newDocumentBuilder();

Will

On 3/5/07, Rui Silva Torres <[EMAIL PROTECTED]> wrote:

 I am using a Java XML generator called toXgene that uses xerces.
This generator can get information of external sources (XML files), and I
gave to it an external xml file with entity references.
The problem is that it generates a xml file, where  all the entities
references were converted, and I want to preserve all the entities.

So, I suppose that the conversion is done by xerces, and  I want to know
if it is possible to configure xerces to preserve all the entities.

Regards,
Rui Torres

Reply via email to