I am sending XML messages to update records in a new software system. The xPath uses apostrophes around an ID value. the problem is the value itself could potentially contain an apostrophe.
Example:
This works fine when the ID value doesnt have an apostrophe:
<Sync>
<ActionCriteria>
<ActionExpression actionCode="Add">/SyncItemMaster/DataArea/ItemMaster[ItemMasterHeader/ItemID[ID='Test Part']]</ActionExpression>
</ActionCriteria>
</Sync>
<ItemMaster>
<ItemMasterHeader>
<ItemID>
<ID>Test Part</ID>
<RevisionID>000</RevisionID>
</ItemID>
So when i have an ID value with an apostrophe, this fails.
i.e. ID = Part's Test gives this that fails when being read by software system.
<ActionExpression actionCode="Add">/SyncItemMaster/DataArea/ItemMaster[ItemMasterHeader/ItemID[ID='Part's Test']]</ActionExpression>
Is there a way to delimit an actual apostrophe in the value here?