/** 替换子节点 */ public void replaceChild(XML oldXml, XML newXml) { int index = _children.indexOf(oldXml); if (index != -1) { _children.set(index, newXml); } }