【发布时间】:2020-08-11 08:05:54
【问题描述】:
我有一个xml文件,Body.xml:
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<MyNumbers xmlns="http://google.com/">
<number1>1</number1>
<number2>1</number2>
<number3>1234</number3>
<number4>1</number5>
</MyNumbers>
</soap12:Body>
</soap12:Envelope>
我想以编程方式从数字列表中更改 number3 标记中的数字。 我怎样才能做到这一点?
谢谢!
【问题讨论】:
标签: c# xml namespaces linq-to-xml