I have the following xml file test.xml:
<a>
<b c="test1" d="test2"/>
<b c="test3" d="test4"/>
</a>
This xml file can have 1 or more b elements. I would like to ask how could I change the value of item c in a specific b using php.
Thanks in advance.
Using: http://php.net/manual/en/book.dom.php
Sample (all c-attributes):
Only specific nodes: