XML structure:
<root>
<book>
<author>Isak Azimov</author>
<name>End of spirit</name>
<date>10/05/2018</date>
</book>
</root>
If I have record in my XML file that already exist, PHP script must to update only date of the record not to insert it as a new one. How to make this comparing about the values in nodes author and name with the new values that entered in form?