Hi everyone,
I am using XQuery to grab a node from an XML document, everything works fine up till this point. I don't know what to do next.

Problem description:
I need to grab the attribute and the value from a single node that looks like this

Qt Code:
  1. <strong class="class1">0.0376</strong>
To copy to clipboard, switch view to plain text mode 

to get this node I used

Qt Code:
  1. QString xq = "doc('%1')";
  2. QXmlQuery queryxml;
  3. queryxml.setQuery(xq.arg(query));
  4. QByteArray output;
  5. QBuffer buffer(&output);
  6. buffer.open(QIODevice::WriteOnly);
  7.  
  8. QXmlSerializer serializer(queryxml, &buffer);
  9.  
  10. if (queryxml.isValid()) {
  11. queryxml.evaluateTo(&serializer);
  12.  
  13. qDebug() << "output: " << output;
  14. }
To copy to clipboard, switch view to plain text mode 
The reason I need to get the attribute is that class name will sometimes be "class2" and depending on that I need to do different things with the 0.0376 value.

http://doc.trolltech.com/snapshot/qx...odelindex.html suggested to use an XML receiver to get attributes, names and child nodes, so I did that, but have no idea how to proceed and haven't seen any examples of this.
So my question is: How to get the attribute and value of the node using either code above or other code that uses XQuery;
Thanks,
josh