<!-- Blocks.xml, traps, sets damage received from operation to 0 -->
<!-- <property name="DamageReceived" value=""/> -->
<!-- <property name="Damage_received" value=""/> -->
<!-- Code -->
<configs>
<set xpath="/blocks/block/property[@name=Damage_received]/@value">0</set>
<set xpath="/blocks/block/property[@name=DamageReceived]/@value">0</set>
</configs>
This SHOULD parse the entire blocks.xml and replace the damage received value for every block with that attribute but its not and its driving me up the wall. I have looked at everything I can think of, even the case of the filename... I'm ready to punch my screen ! It works if I change the core file so I know the property still functions but this xpath won't to a thing.
<!-- <property name="DamageReceived" value=""/> -->
<!-- <property name="Damage_received" value=""/> -->
<!-- Code -->
<configs>
<set xpath="/blocks/block/property[@name=Damage_received]/@value">0</set>
<set xpath="/blocks/block/property[@name=DamageReceived]/@value">0</set>
</configs>
This SHOULD parse the entire blocks.xml and replace the damage received value for every block with that attribute but its not and its driving me up the wall. I have looked at everything I can think of, even the case of the filename... I'm ready to punch my screen ! It works if I change the core file so I know the property still functions but this xpath won't to a thing.