Menu

#102 Escaping of XML entities

v1.61
closed
nobody
None
1
2014-07-30
2014-03-26
Phil Mayer
No

XML entities, at least the "&" entity, are not escaped in XML output. This means that the XML written is not valid XML and thus cannot be read by normal XML parsers.

Sample output by the Java/Eclipse XML parser:
[Fatal Error] :23:112: The reference to entity "co" must end with the ';' delimiter.

To reproduce:
Create a project in which there are files with a name such as "foo&bar.sh", or in which the project name is "foo & bar". The resulting XML file will include "&" instead of "&".

Discussion

  • Phil Mayer

    Phil Mayer - 2014-03-26

    ...this should obviously read "instead of the XML entity "& amp ;""

     
  • Al Danial

    Al Danial - 2014-03-26
    • status: open --> accepted
     
  • Phil Mayer

    Phil Mayer - 2014-04-03

    Just ran into the same error with a " in a file name, which needs to be escaped by ".

     
  • Al Danial

    Al Danial - 2014-04-03
    • status: accepted --> pending
     
  • Al Danial

    Al Danial - 2014-07-30
    • status: pending --> closed
     
  • Al Danial

    Al Danial - 2014-07-30

    v1.62 released

     

Anonymous
Anonymous

Add attachments
Cancel