Quote:
I want to create "User" node to this xml file:
The file you show is wrong afainst what you want to do.
In order to add a user to the file, I think you need a root node.
Your file
<user pin="5111">
...
</user>
must look like
<rootnode>
<user pin="5111">
...
</user>
</rootnode>
in order to add
User
nodes
<rootnode>
<user pin="5111">
...
</user>
<user pin="5112">
...
</user>
</rootnode>
To change an XML file, one need to load the file in memory (with an XMLReader object/class). Add nodes as you want. Save the file when finished. Like shown in Solution 1.
XML Tutorial[
^]