Thanks Scott,
That was the one . . . I did not realize this affected my DTD parsing . . .
I'll look the details up in the doc's.
Cheers,
Peet
----- Original Message -----
From: "Scott Boag/CAM/Lotus" <[EMAIL PROTECTED]>
To: "Peet Sneekes" <[EMAIL PROTECTED]>
Cc: "Xerces Mailgroup" <[EMAIL PROTECTED]>
Sent: Wednesday, February 23, 2000 4:08 PM
Subject: Re: DTD Expansion not done?
>
> 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>
>
>
>
>
>
>