-rw-r--r-- | noncore/apps/tableviewer/db/xmlsource.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/noncore/apps/tableviewer/db/xmlsource.cpp b/noncore/apps/tableviewer/db/xmlsource.cpp index 7418a85..94fec36 100644 --- a/noncore/apps/tableviewer/db/xmlsource.cpp +++ b/noncore/apps/tableviewer/db/xmlsource.cpp @@ -23,2 +23,4 @@ #include <qtextstream.h> +#include "../xmlencodeattr.h" + @@ -70,3 +72,3 @@ bool DBXml::saveSource(QIODevice *outDev) << "\">"; - outstream << it.current()->name() << "</key>" << endl; + outstream << encodeAttr(it.current()->name()) << "</key>" << endl; } @@ -96,3 +98,3 @@ bool DBXml::saveSource(QIODevice *outDev) } else { - outstream << elem->toQString(i); + outstream << encodeAttr(elem->toQString(i)); } |