XPath Support for Webhooks?
I'm really trying to avoid making a particular solution more complicated than it needs to be by using a webhook rather than an API to update some lead information that's being transmitted via XML. In this particular case, the structure looks something like
<level1>
<level2>
<level3>
<apple_type>Gala</apple_type>
<orange_type>Navel</orange_type>
</level3>
</level2>
</level1>
Nothing particularly rocket science is attempting to be accomplished here: all I'm trying to do is pull apple_type when orange_type is Navel. Normally with XPath I'd just do something like
/level1/level2/level3[orange_type/text() = "Navel"]/apple_type/text()
However, it doesn't seem like Marketo can use that sort of markup for a response. Because I have multiple potential level3 tags, I can't rely on just turning the query into something that can just look for the order of the tag. Is there any sort of recourse here or am I going to have to make this into a formal API call to place the apple_type data into a field?