Best way to manipulate XML in .NET

后端 未结 4 1798
北荒
北荒 2020-12-10 03:22

I need to manipulate an existing XML document, and create a new one from it, removing a few nodes and attributes, and perhaps adding new ones, what would be the best group o

4条回答
  •  天命终不由人
    2020-12-10 03:41

    Parsing the document with XML Style Sheets might be the easiest option if it is just a conversion process.

    Here is how to use XSLT in .NET.

    and

    Here is an introduction to XSLT.

    It confused me a bit at first, but now I pretty much use XSLT to do all my XML conversions.

提交回复
热议问题