第一种
XMLElement root=xmlDocument.DocumentElement;
第二种
XMLElement root=xmlDocument.selectSingleNode(name);
如果没有根目录
XMLElement root =xmlDocument.createElement("root");
第一种
XMLElement root=xmlDocument.DocumentElement;
第二种
XMLElement root=xmlDocument.selectSingleNode(name);
如果没有根目录
XMLElement root =xmlDocument.createElement("root");