QDomDocumentd;
d.setContent(someXML);
QDomNoden=d.firstChild();
while(!n.isNull()){
if(n.isElement()){
QDomElemente=n.toElement();
cout<<"Elementname:"<<e.tagName()<<endl;
break;
}
n=n.nextSibling();
} 原文链接:https://www.f2er.com/xml/295722.html
QDomDocumentd;