Hello,
I am trying to parse an xml doc. Considering the following xml data:
<item>
<title>New champion..</title>
<link>
http://www.radikal.com.tr/Radikal.aspx?aType=RadikalHaberDetay&ArticleID=919267&CategoryID=103
</link>
<description>http://www.radikal.com.tr/2009/01/30/</description>
</item>
<item>
<title>New champion..</title>
<link>
http://www.radikal.com.tr/Radikal.aspx?aType=RadikalHaberDetay&ArticleID=919267&CategoryID=103
</link>
<description>http://www.radikal.com.tr/2009/01/30/</description>
</item>
To copy to clipboard, switch view to plain text mode
When i try to read the "link" parameter:
if (current == "link"){
link = reader->text().toString();
reader->readNext();
}
if (current == "link"){
link = reader->text().toString();
reader->readNext();
}
To copy to clipboard, switch view to plain text mode
"link" returns "http://www.radikal.com.tr/Radikal.aspx?aType=RadikalHaberDetay"
when once more i read next:
reader->readNext();
reader->readNext();
To copy to clipboard, switch view to plain text mode
"link" returns "&ArticleID=919267" and once more...:
reader->readNext();
reader->readNext();
To copy to clipboard, switch view to plain text mode
"link" returns "&CategoryID=103".
QXmlStreamreader splits "link" into three pieces(on "&" sections). I want to get all "link" in one read step. How can i achieve that?
Thanks in advance..
Bookmarks