pDocElement->appendChild(pDoc->createTextNode("\n\t")); pDocElement->appendChild(pNewChildElement); 是不是就有了