Hi All,

Below is my xml file content and my code to read it. How to read/write the MODVERS value in parameter tag? and

------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<communication CMD="03" OS="3" VER="1.0">
<parameters>
<parameter MODNAME="testing module" MODVERS="1.0.0.0"/>
</parameters>
</communication>
-------------------------------------------------------------------------------------

QFile file(strXMLPath);
if(!QFile::exists(strXMLPath) || !file.open(QIODevice::ReadWrite) )
{
return;
}
//load the xml content
QDomDocument doc;
if(!doc.setContent(&file))
{
file.close();
return;
}
file.close();
QDomElement root = doc.documentElement();
QDomElement item = root.firstChildElement();

while(!item.isNull())
{
QString strTag = item.tagName();
item = item.nextSiblingElement();
}