zoukankan
html css js c++ java
.net 操作xml: 找到节点并删除该节点
private
void
DelImage(
string
pID)
{
//
update xml
System.Xml.XmlDocument xmlDoc
=
new
XmlDocument();
xmlDoc.Load(fileUrl);
XmlNode node
=
xmlDoc.SelectSingleNode(
"
/album/folder/photoes/photo[guid='
"
+
pID
+
"
']
"
);
node.ParentNode.RemoveChild(node);
//
good method!!!
xmlDoc.Save(fileUrl);
//
del the file
}
查看全文
相关阅读:
Rust-数据类型
Rust-智能指针
Rust-使用包、Crate和模块管理不断增长的项目
Rust-Slice类型
Rust-引用与借用
Rust 的核心功能-所有权(ownership)
How to fix “sudo: command not found error”
ABC195 F
CF1501D Two chandeliers【拓展欧几里得+二分】
CCA的小球【容斥定理】
原文地址:https://www.cnblogs.com/silva/p/341237.html
最新文章
每日日报2021.6.9
每日日报2021.6.8
每日日报2021.6.7
每日日报2021.6.4
每日日报2021.6.3
每日日报2021.6.2
每日日报2021.6.1
本学期末总结
每日日报2021 6/11
每日日报2021 6/10
热门文章
每日日报2021 6/9
每日日报2021 6/8
每日日报2021 6/7
每日日报2021 6/6
每日日报2021 6/05
每日日报2021 6/4
每日日报2021 6/3
944. Delete Columns to Make Sorted
设置git代理(http方式)
Rust是如何在内存中储存字符串的?
Copyright © 2011-2022 走看看