1
我有一個XML字符串,這樣
更新XML標籤屬性的值在.NET
<root>
Am trying <br id="9"/>to reorder the <br id="5"/>break
lines <br id="10"/> attributes value
</root>
沒有辦法更改屬性的XML BR標籤ID的屬性值是在順序 這樣
<root>
Am trying <br id="1"/>to reorder the <br id="2"/>break
lines <br id="3"/> attributes value
</root>
非常感謝你真的幫了我很多工作正確 –
'doc.Elements(「BR」)'可以簡化爲'文檔。
'。 –
@MarkHurd好點。我會更新樣本來反映這一點。 – Garett