Alright, so here is my situation. i have a userlist for a program im designing, and all the users are stored to an XML file, like so:
<?xml version="1.0"?>
<Users>
<User ID="1">
<nickname>Tom</nickname>
<password>Sams</password>
<host>[email protected]</host>
<email>[email protected]</email>
<isloggedin>true</isloggedin>
<permission>10</permission>
</User>
<User ID="2">
<nickname>ohai</nickname>
<password>asdalkdj9u</password>
<host>[email protected]</host>
<email>my@email</email>
<isloggedin>false</isloggedin>
<permission>1</permission>
</User>
<User ID="3">
<nickname>ohai</nickname>
<password>sercret</password>
<host>my@host</host>
<email>my@email</email>
<isloggedin>false</isloggedin>
<permission>1</permission>
</User>
<User ID="4">
<nickname>mib_hr6qhr</nickname>
<password>YXNsa2RhZGxrYXNk</password>
<host>[email protected]</host>
<email>[email protected]</email>
<isloggedin>true</isloggedin>
<permission>1</permission>
</User>
</Users>
now, based on the users ID number, i need to be able to delete all reference to that user.
So say, i have ID number 3. how can i completely delete userid number 3's existance from the xml file?
im looking for code examples.. any help would be greatly appriciated!