Bug#39424: Compiler options, Add configuration produces invalid xml

olistrut at gmx.net olistrut at gmx.net
Sun Mar 17 20:04:03 UTC 2002


Package: kdevelop
Version: 2.1 Beta 2 (using KDE 2.2.2 )
Severity: normal
Installed from:    SuSE RPMs
Compiler:          gcc 2.95.3
OS:                Linux
OS/Compiler notes: Not Specified

Steps to reproduce:

Follow http://www.uv-ac.de/ipaqhelp/index-7.html to set up a new project, but when setting up a new compiler configuration for cross compilation enter a config name that includes spaces (e.g. "ARM QT Embedded 2").

KDevelop will continue to work, and will write .kdevses file on closing the project. Reloading the projects results in an error message (session file contains invalid xml).

Problem:

KDevelop uses the configuration name as a tag name in the session file :
 <CompileConfigs>
  <ARM QT Embedded 2>
    ...
effectively creating invalid XML.

Possible solutions: 
- Encode special characters, (" " -> _)
- Don't allow special characters in config name
- Change DTD and make config name an attribute, eg. 
 <CompileConfigs>
  <CompileConfig name = "ARM QT Embedded2">
    ...


(Submitted via bugs.kde.org)





More information about the KDevelop-devel mailing list