![](https://iknow-base.cdn.bcebos.com/lxb/notice.png)
展开全部
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load("path.xml"));
XmlNode root = xmlDoc.DocumentElement;
string backupPath = root.Attributes[0].Value;
string targetPath = root.Attributes[1].Value;
不明白的再问哟,请及时采纳,多谢!
xmlDoc.Load("path.xml"));
XmlNode root = xmlDoc.DocumentElement;
string backupPath = root.Attributes[0].Value;
string targetPath = root.Attributes[1].Value;
不明白的再问哟,请及时采纳,多谢!
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询