hi,
i saved value from lineEdit to an xml file. Again i want to read the values from xml file to lineEdit and then modify(edit ) the values and update it. i used Qdomdocument ,Q domelement and Qdomtext to save the values , but facing dificulty to read the values.



my xml file is:

<ECLOGIC>
<PLCNO> 123</PLCNO>
<PLCName>motor pump</PLCName>
</ECLOGIC>

code to save from lineEdit to a xml file:

void xmledit::SaveXMLFile()
{
filename = QFileDialog::getSaveFileName(this,
tr("Save Xml"), ".",
tr("Xml files (*.xml)"));
QFile file(filename);
file.open(QIODevice::WriteOnly);

const int Indent = 4;
QDomDocument doc;
QDomElement root = doc.createElement("ECLogic");
QDomElement Plcwin = doc.createElement("PLCConfig");
QDomText Plcno = doc.createTextNode(ui->PNumber->text());
QDomText Plcname = doc.createTextNode(ui->PNumber->text());
doc.appendChild(root);
root.appendChild(Plcwin);
root.appendChild(Plcwin);
Plcwin.appendChild(Plcno);
Plcwin.appendChild(Plcname);
QTextStream out(&file);
doc.save(out, Indent);
file.close();


now how to read the vaues using xmldom?