Kosmic Kerman
New member
What is the correct syntax for referring to operation=Equals in xpath? In the xml files the syntax is <node name="foo" operation="Equals" value ="15"/>. I've tried operation="Equals" in a set command and I have tried operation="Equals" in an append command but both throw errors in the log file. I also tried using single quotes in the set command. The error in the log file was:
Requested value '"Equals"' was not found
The quotes (single or double) varied depending on which I was using at the time. Ultimately I gave up and just replaced "Equals" with "GT" and the XML parser accepted it. I'd love to know the correct syntax for the future though.
Here are the various iterations of config changes I tried:
<set xpath="/progression/perks/perk[@name='perkLockPicking']/effect_group/passive_effect[@name='LootProb' and @operation='base_set']/requirement/@operation">"Equals"</set>
<set xpath="/progression/perks/perk[@name='perkLockPicking']/effect_group/passive_effect[@name='LootProb' and @operation='base_set']/requirement/@value">75</set>
AND
<append xpath="/progression/perks/perk[@name='perkLockPicking']/effect_group/passive_effect[@name='LootProb' and @operation='base_set']">
<requirement name="ProgressionLevel" progression_name="craftingWorkstations" operation="Equals" value="75"/>
</append>
Requested value '"Equals"' was not found
The quotes (single or double) varied depending on which I was using at the time. Ultimately I gave up and just replaced "Equals" with "GT" and the XML parser accepted it. I'd love to know the correct syntax for the future though.
Here are the various iterations of config changes I tried:
<set xpath="/progression/perks/perk[@name='perkLockPicking']/effect_group/passive_effect[@name='LootProb' and @operation='base_set']/requirement/@operation">"Equals"</set>
<set xpath="/progression/perks/perk[@name='perkLockPicking']/effect_group/passive_effect[@name='LootProb' and @operation='base_set']/requirement/@value">75</set>
AND
<append xpath="/progression/perks/perk[@name='perkLockPicking']/effect_group/passive_effect[@name='LootProb' and @operation='base_set']">
<requirement name="ProgressionLevel" progression_name="craftingWorkstations" operation="Equals" value="75"/>
</append>
Last edited by a moderator: