Peter,

The entities does not cease to exists when they are serialized, but the
entity references are replaced with the contents of the entities during
serilazation. I use this mechanism to ensure users only use specific
values in certain elements, when editing the documents.

It is possible to create a different mechanism, which checks the document
after the editing process, but that is exactly what I wanted to avoid.

Although I would like to have this facility, it is more important to me
that I am able to edit documents with xinclude element, and that XXE does
not replace the xinclude element  with the content (in XXE the so called
non-managed references).

Regards,

Jens

On Fri, 28 Oct 2005, Peter Ring wrote:

> I'd expect entities to cease to exist when the XML document is parsed, not 
> when it is serialized and saved. There's no easy way to implement this, short 
> of keeping information about entity references in the parse tree, which is 
> expensive; the effort required is spent better elsewhere.
>
> kind regards
> Peter Ring
>
> > -----Original Message-----
> > From: xmleditor-support-bounces at xmlmind.com
> > [mailto:xmleditor-support-bounces at xmlmind.com]On Behalf Of Jens
> > Stavnstrup
> > Sent: 27. oktober 2005 14:37
> > To: xmleditor-support at xmlmind.com
> > Subject: [XXE] Keep entity references
> >
> >
> > Here is a proposal for a feature in the editor.
> >
> > The editor should not replace entity references with the corresponding
> > content when saving a document.
> >
> > Regards,
> >
> > Jens
> >
> > --------------------------------------------------------------
> > ----------
> > Jens Stavnstrup                            Phone :
> > Danish Defence Research Establishment         Voice : + 45 -
> > 39 15 17 97
> > Ryvangs Alle 1 - P.O. Box 2715                Fax   : + 45 -
> > 39 29 15 33
> > DK - 2100 Copenhagen O.                    E-Mail (Internet) :
> > Denmark                                       js at ddre.dk
> >                                            Jabber/XMPP:
> >                                               stavnstrup at jabber.org
> > --------------------------------------------------------------
> > ----------
> >
> >
> >
> >
> > --
> > XMLmind XML Editor Support List
> > xmleditor-support at xmlmind.com
> > http://www.xmlmind.com/mailman/listinfo/xmleditor-support
> >
>

Regards,

Jens

------------------------------------------------------------------------
Jens Stavnstrup                            Phone :
Danish Defence Research Establishment         Voice : + 45 - 39 15 17 97
Ryvangs Alle 1 - P.O. Box 2715                Fax   : + 45 - 39 29 15 33
DK - 2100 Copenhagen O.                    E-Mail (Internet) :
Denmark                                       js at ddre.dk
                                           Jabber/XMPP:
                                              stavnstrup at jabber.org
------------------------------------------------------------------------




Reply via email to