C++ 从QString读取子字符串
我有一个具有此结构的C++ 从QString读取子字符串,c++,regex,xml,qt,C++,Regex,Xml,Qt,我有一个具有此结构的QString: <msg> <to>ircellFarzan</to> <from>374</from> <replied_msg>10</replied_msg> </msg>example content if (m_selectedFullContent.contains("<replied_id>")) { //find te
QString
:
<msg>
<to>ircellFarzan</to>
<from>374</from>
<replied_msg>10</replied_msg>
</msg>example content
if (m_selectedFullContent.contains("<replied_id>"))
{
//find text between <replied_id> and </replied_id>
}