QT4用DOM修改子节点值总是不生效!查了俩小时,才发现是要添加firstchild这一句!e.childNodes().at(j).firstChild().setNodeValue("sss");是对的e.childNodes().at(j).setNodeValue("sss");是不行的!