QDomNode Getnode(QString Childnodename,QDomNode fathernode,QDomDocument doc )
{
QDomNodeList childList = fathernode.childNodes();
for(int j = 0; j < childList.count(); j++){
QDomNode ChildNode = childList.at(j);
if(Childnodename == ChildNode.nodeName()){
return ChildNode;
}
}
QDomElement newnode = doc.createElement(Childnodename);
return fathernode.appendChild(newnode);
}