Peet, keep in mind:
domParser.setFeature
("http://apache.org/xml/features/dom/create-entity-ref-nodes", false);
Don't know if this is the problem, but we had to do this in our (i.e. the
Xalan) code.
-scott
"Peet
Sneekes" To: "Xerces Mailgroup" <[EMAIL
PROTECTED]>
<[EMAIL PROTECTED] cc: (bcc: Scott
Boag/CAM/Lotus)
tic.nl> Subject: DTD Expansion not done?
02/22/00
04:14 AM
Please
respond to
xerces-dev
Hi,
I found out I don't expand my DTD in anyway . . . but I thought I set all
features for doing so. . .
Any suggestions would be apriciated.
Thanks,
Peet, Mediamatic IP, Amsterdam
<!--______________JAVA__________________________________________________-->
. . . . .
DOMParser parser = new DOMParser();
StringWriter swErrorHandler = new StringWriter();
ErrorHandler eh = (ErrorHandler) new
MMErrorHandler_Apache(swErrorHandler);
{
parser.setErrorHandler(eh);
parser.setEntityResolver(new MmXercesResolver(itsDependencies,0
,theRequestContext));
parser.setFeature("http://xml.org/sax/features/validation", true);
parser.setFeature("http://xml.org/sax/features/external-general-entities
", true);
parser.setFeature("
http://xml.org/sax/features/external-parameter-entities", true);
parser.setFeature("
http://apache.org/xml/features/dom/defer-node-expansion", false);
} catch(SAXParseException e) {
throw new StorageException(this.getClass(), "parsing error",
swErrorHandler.toString(),e);
} catch(SAXException e) {
throw new StorageException(this.getClass(), "parsing error",
swErrorHandler.toString(),e);
}
InputSource source = new InputSource(itsStore.getPersistency
().getReader(itsUrl));
try{
parser.parse(source);
. . . .
<!--______________XML___________________________________________________-->
<?xml version="1.0"?>
<!DOCTYPE messages[
<!ENTITY submitURL "/werk/solliciteren_submit.rml">
<!ENTITY e1 "entity 1">
<!ENTITY e2 "entity 2">
]>
<meldingen>
the first(&e1;)
the last(&e2;)l;dfg
&submitURL;
</meldingen>