C # pair XML operation: write a XML record (1)

xiaoxiao2021-03-05  48

C # Operation XML Preliminary (4) Chapter 2: Add Record to the existing XML file We can add a node according to the XML structure, the property is added. In the test, we assume that the original XML file is as follows:

Outrace

mypass

TRACE

mypass

The following code is written by writing <% @ Import namespace = "system.io"%>

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