i want to make php find a node in xml by the value, and change it...
my xml is the following :
<?xml version="1.0" encoding="ISO-8859-1"?>
<pages>
<link>
<title>App1</title>
<id>c4ca4238a0b923820dcc509a6f75849b</id>
<downloadsnumber>0</downloadsnumber>
</link>
<link>
<title>App2</title>
<id>c81e728d9d4c2f636f067f89cc14862c</id>
<downloadsnumber>0</downloadsnumber>
</link>
<link>
<title>App3</title>
<id>eccbc87e4b5ce2fe28308fd9f2a7baf3</id>
<downloadsnumber>0</downloadsnumber>
</link>
<link>
<title>App4</title>
<id>a87ff679a2f3e71d9181a67b7542122c</id>
<downloadsnumber>0</downloadsnumber>
</link>
</pages>
My php code has to search for an ID (c81e728d9d4c2f636f067f89cc14862c for example, which is App2), and then it has to change the value of <downloadsnumber>
within that same <link>
node to 1.
How can i do this with php ?
Thanks
Evert