Go to the source code of this file.
Functions | |
| QString | fixXMLString (QString text) |
| Fix strings before exporting to XML such that & becomes &, etc... | |
|
|
Fix strings before exporting to XML such that & becomes &, etc...
Definition at line 24 of file xmlTools.cpp. Referenced by Subalbum::exportToXML(), Photo::exportToXML(), and Album::exportToXML().
00025 {
00026 //the following checks are necessary before exporting
00027 //strings to XML. see http://hdf.ncsa.uiuc.edu/HDF5/XML/xml_escape_chars.html for details
00028 text.replace("&", "&");
00029 text.replace("\"",""");
00030 text.replace("'", "'");
00031 text.replace("<", "<");
00032 text.replace(">", ">");
00033 return text;
00034 }
|
1.3.1