QuincyAdam2
3 years agoQrew Trainee
Recording Pipelines Webhook Response - XML
Hello: I have a webhook that is posting to a 3rd party validation service and it's returning a response in XML. The service is also posting the response as "content", so it looks something like:
content:"
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
Then the xml payload to follow. I need to access specific tags such as <status>Eligible</status>. What is the best way to parse an XML response and record it? The response is very long, so I don't need to record everything under content. Is there a better way to do this, or will it require some regex trickery to extract what I need?
------------------------------
Quincy Adam
------------------------------
content:"
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
Then the xml payload to follow. I need to access specific tags such as <status>Eligible</status>. What is the best way to parse an XML response and record it? The response is very long, so I don't need to record everything under content. Is there a better way to do this, or will it require some regex trickery to extract what I need?
------------------------------
Quincy Adam
------------------------------