Append XML string block to existing XmlDocument

前端 未结 6 1479
礼貌的吻别
礼貌的吻别 2020-12-14 15:29

I have an XmlDocument that already exists and is read from a file.

I would like to add a chunk of Xml to a node in the document. Is there a good way to create and a

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-14 16:09

    All that I do is creating a new dataset object and open the xml file using ReadXML myDataset.ReadXML(path and file name).

    Then add or remove the rows that I need and save the document again using myDataset.WriteXML(path and file name).

    Bye.

提交回复
热议问题