Updating xml attribute value based on other with Perl
This is my sample xml file <manifest> <default> <remote>remote1</remote> <revision>rev1</revision> </default> <project> <name>common</name> <path>opensource/device</path> <revision>sa</revision> <x-ship>oss</x-ship> </project> <project> <name>external</name> <path>source/tp</path> <x-ship>none</x-ship> </project> <project> <name>ws</name> <path>opensource/ws</path> <remote>nj</remote> <revision>myno</revision> <x-ship>none</x-ship> </project> </manifest> In this I need to update the value of revision only when <path> has "opensource" string in it. I searched a lot but couldn't find anything