C # pair XML operation: Edit XML file content

xiaoxiao2021-03-05  20

C # Operation XML Preliminary (5) Chapter 3: The editing of the XML file record uses C # to edit the XML file, the most convenient method is of course still using DataSet We continue to use the XML file in the previous, as follows:

Outrace

mypass

TRACE

mypass

new user

New Passwd

Then, we create a new XML file, the content is as follows: <% @ import namespace = "system.io"%>

<% @ Import namespace = "system.xml"%>

<% @ Import namespace = "system.data"%>