Avatar of Shiva_Kumar
Shiva_Kumar

asked on 

php script to compare yesterdays and todays node value of same xml file

hi,

I have a XML file whose one of the node value changes every day once.  Now i need to script which can compare yesterdays and todays node value of the same xml file.  if they found to be same then i would assume that it is not updated.

here's what i am doing:

1. parsing the xml file to get todays node value.
2. i am keeping a downloaded copy of the same xml file from yesterday and parsing this xml file to compare todays and yesterdays node value.

Is there any better way performing this task.

Thanks
PHP

Avatar of undefined
Last Comment
kevthedude

8/22/2022 - Mon