- 
    
Bug
 - 
    Resolution: Fixed
 - 
    
P5: Not important
 - 
    4.7.4, 4.8.0
 - 
    None
 - 
    Qt SDK 1.2.1
 
XQuery on CDATA sections returns result as escaped XML text instead of original raw data.
Example code (see complete project attached) :
    QXmlQuery xQuery;
    xQuery.setQuery("doc('test.xml')/xml/string()");
    QString result;
    xQuery.evaluateTo(&result);
    qDebug() << "Result = " << result;
With the following input test.xml file :
<xml>
 <![CDATA[<tag>test</tag>]]>
</xml>
returns escaped output:
<tag>test</tag>
instead of the correct output :
<tag>test</tag>
XQuery engine should leave the CDATA section untouched without any extra encoding because that's what CDATA sections are meant for.