hi,
im trying to read the following:
<strengthClass name = "C14">
<roh_k>290</roh_k>
<fm_k>14</fm_k>
<ft0_k>8</ft0_k>
...
...more of theese
</strengthClass>

i tried with:
Qt Code:
  1. if (name() == "strengthClass")
  2. {
  3. strengthClass = attributes().value("name").toString();
  4. readNextStartElement();
  5. while(!(this->tokenType() == EndElement && name() == "strengthClass"))
  6. {
  7. if(name() =="roh_k")
  8. {
  9. roh_k = text().toString().toDouble(); // not working
  10. }
  11. else if(name() == "fm_k")
  12. {
  13. fm_k =text().toAscii().toDouble(); // this neither
  14. //...
To copy to clipboard, switch view to plain text mode