Click here to Skip to main content
12,405,303 members (69,556 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# XML Windows
hi all,

I am working on xml

when I add new recoard always replacing 1st record it's not accepting 2nd.. records

my code is

if (File.Exists(path))
                XElement xml = new XElement("Users", new XElement("User", new XElement("UserName", txtUserName.Text),
                    new XElement("Password", txtpassword.Text), new XElement("Role", Role)));

result is
//this is result
Posted 2-Apr-13 22:52pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Please look into the below link.[^]


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.160721.1 | Last Updated 3 Apr 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100