0
I have a login system in C# and a following XML file:
<?xml version="1.0"?>
<Usuarios>
<Usuario>
<User_ID>001</User_ID>
<Password>010309</Password>
<Password_Change_Date>00/00/00</Password_Change_Date>
<User_Login>admteste</User_Login>
<User_RG>00000002</User_RG>
<User_Status>Normal</User_Status>
<User_Profile>4</User_Profile>
</Usuario>
<Usuario>
<User_ID>002</User_ID>
<Password>01234</Password>
<Password_Change_Date>01/10/2019</Password_Change_Date>
<User_Login>pbteste</User_Login>
<User_RG>00000005</User_RG>
<User_Status>Inicial</User_Status>
<User_Profile>3</User_Profile>
</Usuario>
</Usuarios>
After the user logs in, I create an object and save all the data within the attributes of this object, my question is: I have a page where the user can make the password change, how can I make this change inside the XML file in the specific node of the logged in user? Assuming I already have the User_id saved in the object... Thank you
You can re-read the file with Xdocument and Linq and then save again ...
– novic
Sorry buddy, I’m pretty layy with XML, could you give me some simple example please ?
– Gabriel Longatti
Put the code that reads?
– novic