Currently when there are comments inside an XML document, those comments also end up in the generated string. So maybe exo-csource can remove the text between the <!-- comments --> (and maybe also the spaces, tabs and new lines between the xml >tags< ??), before generating the symbols file.
Created attachment 1083 exo-csource-strip-xml This patch adds support for xml stripping in exo-csource. To use it, the user should should add the --strip-xml argument when parsing the xml file.
Created attachment 1084 thunar-strip-xml Add support for xml stripping in Thunar. It saves about 4,6Kb in the binary (~1%) and hopefully improves the ui_manager speed a bit (for example: stripping the thunar-window-ui.xml makes it 26% smaller).
Great idea, but you cannot simply drop characters between nodes. I'll modify that patch a little and commit it.
Committed with revision 25728. 2007-05-20 Benedikt Meurer <benny@xfce.org> * exo-csource/main.c: Add support to strip comments and node contents from XML files. Based on patch from Nick Schermer <nick@xfce.org>. Bug #3094. * po/*.po, po/*.pot: Merge new strings. * po/de.po: Update german translations. 2007-05-20 Benedikt Meurer <benny@xfce.org> * thunar/Makefile.am: Strip unused characters from the user interface description files. Bug #3094.