[Qt-interest] Trailing blank in XML-output of QDomDocument
Petric Frank
pfrank at gmx.de
Mon May 25 20:22:50 CEST 2009
Hello,
i wrote a Qt-program to generate an XML file to be feed into an other
(foreign) tool. The XML-file is created by filling a QDomDocument and savon
it via its save() method.
During tests i recognize that the (foreign) tool had problems when it comes to
attributes of an element (QDomElement). If it has attributes assigned to it a
trailing blank is added before the (closing) greater-than sign. Then this
tool aborts.
For me the XML-data generated be QDomxxx is ok. Due we have no control of the
foreign tool i patched qdom.cpp to omit this additional blank.
Due this patch also results in 1 statement less in code i post the patch here
for anyone interested in it. Base was the QT opensource SDK for Windows
version 2009.02.1 (i think QT 4.5.1 in packaged here).
Should i write a fault report for it ?
(due it is not really a fault ...)
regards
Petric
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qdom-save_attributes.diff
Type: text/x-diff
Size: 833 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090525/c98a54ff/attachment.bin
More information about the Qt-interest-old
mailing list