how to get multi line of values out of xml??
Sample xml:
<xml name="xml"/>
<xml1 name="xml1"/>
<xml2 name="xml2"/>
<xml3 name="xml3"/>
<xml name="xml"/>
<xml1 name="xml1"/>
<xml2 name="xml2"/>
<xml3 name="xml3"/>
To copy to clipboard, switch view to plain text mode
thanks in advanced..
qt code:
if(!roots.isNull()){
QString elementName
= roots.
tagName();
if(elementName.compare("xml")==0){
setxml(roots.attribute("name"));
selectedxml->setText( getxml() );
}
}
QDomElement roots = doc.documentElement();;
if(!roots.isNull()){
QString elementName = roots.tagName();
if(elementName.compare("xml")==0){
setxml(roots.attribute("name"));
selectedxml->setText( getxml() );
}
}
To copy to clipboard, switch view to plain text mode
how to modify this code to get values of xml, xml1, xml2, xml3's name from xml file..
thanks..
Bookmarks