title: No results with QXmlQuery
body: <p>I'm getting really fustrated with this...</p>
  
  <p>With this simple xml:</p>
  
  <pre><code>&lt;?xml version='1.0'?&gt;
  &lt;root&gt;
     &lt;data&gt;hello&lt;/data&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>And this code</p>
  
  <pre><code>QXmlQuery xquery;
  xquery.setQuery( "doc('config.xml')//data" );
  
  if( xquery.isValid() )
  {
      QXmlResultItems itemResult;
   xquery.evaluateTo( &amp;itemResult );
   QXmlItem item( itemResult.next() );
   while( !item.isNull() )
   {
    QVariant value = item.toAtomicValue();
    qDebug() &lt;&lt; "One XML result!!!";
    item = itemResult.next();
   }
  }
  </code></pre>
  
  <p>This code simply doesn't throw me any results.
  I've checked that the execute path of app is the same where the config.xml is located.</p>
  
  <p>Official documentation doesn't help me very much and seems there's no extra info on internet about details on how to use this class.</p>
  
  <p>I have another program that successfully loads data from an xml and the code is exactly like the posted one. Even throws me an error if xml file is not found (a thing that with my current app doesn't happens).</p>
  
  <p>Of course I'm configuring the .pro file to use xmlpatterns:</p>
  
  <pre><code>QT += xmlpatterns
  </code></pre>
  
  <p>Any clue??</p>