ich würde gerne ein QDomElement als Text ausgeben und versuche es deshalb in einen String umzuwandeln, inklusive der Tags.
Versucht habe ich es mit:
Code: Alles auswählen
QDomElement.toDocument().toString(1);vielen Dank!
Code: Alles auswählen
QDomElement.toDocument().toString(1);Code: Alles auswählen
QTextStream & operator<< ( QTextStream & str, const QDomNode & node )Hat das Element also Kind-Elemente, wird das alles rekursiv mit ausgegeben.Writes the XML representation of the node node and all its children to the stream str.