QDomDocument doc;doc.appendChild(doc.createElement("body"));QDomElement root = doc.documentElement();QDomElement el = doc.createElement("tag");root.appendChild(el);for (int i=0; ++i<11;) el.setAttribute(QString("attr_%1").arg(i), "p");qDebug(doc.toByteArray(4).constData());
for (int i=0; ++i<11;)