I'm trying to look at the best way of changing the value of an element in XML.
<MyXmlType>
<MyXmlElement>Value</MyXmlElement>
</MyXmlType>
What is the easiest and/or best way to change "Value" in C#?
I've looked at XMLDocument and it will cause a load of the whole XML document to memory. Could you do it safely with the XMLReader. The problem is changing the value and emitting it back seems like an interesting conundrum.
Cheers :D
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…