删除xml没有值的节点
我要删除 没有值的节点 <price/>
DECLARE @myDoc xml
SET @myDoc = ' <root>
<item ID="1">
<title>aaa </title>
<author>bbb </author>
<price>10 </price>
</item>
<item ID="2">
<title>hhh </title>
<author>hkkk </author>
<price/>
</item>
</root>'
SELECT @myDoc
我要的结果是
DECLARE @myDoc xml
SET @myDoc = ' <root>
<item ID="1">
<title>aaa </title>
<author>bbb </author>
<price>10 </price>
</item>
<item ID="2">
<title>hhh </title>
<author>hkkk </author>
&
相关问答:
从数据库中查询一张表的数据
select 部门,姓名 from tb
如何才能生成下面的xml格式
XML code:
<folder state="unchecked" label="全部">
<folder state="unchecked&qu ......
我现在要做一个用c#做的,利用socket传输XML文件,并解读XML文件,执行XML里面的相关操作之后,把结果动态地写入XML文件里,再传回去!最好能给个案例看看,急急急啊!!!
谢谢了!
怎么个解析法?
1、.net Romti ......
string b = "";
b = System.Guid.NewGuid().ToString();//获得会话ID
//写XML
XmlDocument xml = new XmlDocumen ......