Hi everybody,

I have a question about the handling of entities by AXIOM. Is it possible to avoid the extending of this entities in the result document?

The scenario is as follows:
- a master xml file, that includes another xml "parts" by a set of internal entities.


The desired behavior:
- the parser should be able to parse the content of the referenced parts
- the output document have to content furthermore the entities and not to replace them in the master file

Default behavior of AXIOM:
- the referenced document parts are parsed (OK)
- AXIOM replaces the entities (SIC!)


The analog option in DOM is to be set by the configuration of the parser object:

// Obtaining a DOMConfiguration object
DOMConfiguration config = parser.getDomConfig();

// Keep EntityReference nodes in the document
config.setParameter("entities", Boolean.TRUE);

// Parsng an XML document
Document document = parser.parseURI(inFile);


Is it possible to do the same with AXIOM?


Thanks for any suggestions!

Reply via email to