I'm having trouble referencing a specific item in our order XML feed. I want to reference a specific "attribute-id", not the entire rowset.
<custom-attributes> <custom-attribute attribute-id="recipientName">JeremyTest</custom-attribute> <custom-attribute attribute-id="senderName">Jeremy</custom-attribute> </custom-attributes>
My current code:
Set @giftMessageToFrom = BuildRowsetFromXML(@xml,'//shipment/custom-attributes/custom-attribute',1)
I would like to be able to check if it is a "recipientName" or "senderName" as sometimes customers will only put one or the other, not both.
Please also link to any documentation on this. I can't find anything specific to id's like this in XMLs. I've tried going the "Field" route to no avail along with trying to put the entire thing into the BuildRowsetFromXML but that also didn't work.