Skip Menu |

This queue is for tickets about the XML-Mini CPAN distribution.

Report information
The Basics
Id: 4275
Status: new
Priority: 0/
Queue: XML-Mini

People
Owner: Nobody in particular
Requestors: martin [...] run.montefiore.ulg.ac.be
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: & expands once more everytime a MiniDocument is modified.
If one inserts text in an element that includes a '&' symbol, the 'toFile' operation will substitute this symbol with the '&amp;' equivalent. The problem comes from the fact that doing another fromFile(), toFile() cycle with this XML document will then make the symbol appear as '&amp;amp;', just as if the encoder didn't noticed it was already subsituted. Same occurs with '<' and '>' which became &amp;lt; after a few modifications, and i fear accentuated characters will suffer the same problem.
[guest - Mon Nov 3 08:15:02 2003]: Show quoted text
> If one inserts text in an element that includes a '&' symbol, the > 'toFile' operation will substitute this symbol with the '& amp;' > equivalent.
(( i add a 'space' between '&' and 'amp;' so that the displayer doesn't alter my report )) Show quoted text
> > The problem comes from the fact that doing another fromFile(), > toFile() cycle with this XML document will then make the symbol > appear as '& amp;amp;', just as if the encoder didn't noticed it was > already subsituted. > > Same occurs with '<' and '>' which became &amp;lt; after a few > modifications, and i fear accentuated characters will suffer the > same problem.
[guest - Mon Nov 3 08:15:02 2003]: okay. My fault. Everything works correctly if i do $XML::Mini::AutoEscapeEntities=0; $meta->fromFile("MyFile.xml"); $XML::Mini::AutoEscapeEntities=1; however, i wonder whether it wouldn't be a good idea to disable the 'auto-escaping' when a file is loaded.