How to parse XML responses in Postman

Published: 10 October 2019
on channel: Valentin Despa
27,449
178

This time we will take a look at working with XML responses which tend to be a bit uglier than JSON responses.

I will show you how you can reach a nested property in Postman.

There are two skills you need to acquire: you need to understand how objects and arrays work in JavaScript.

TIP: When accessing object properties that contain special characters, you can no longer use the dot notation. So for example, if the property is called "some-property", jsonData.some-property will not work. But you can use brackets like this: jsonData['some-property']

If you need to iterate over arrays, take a look at the forEach function in JavaScript: https://developer.mozilla.org/en-US/d...


___

// POSTMAN COMPLETE GUIDE ONLINE COURSE

💥 Want to learn more about Postman? Check my Postman online course.

Get it for only $9.99 and help support this YouTube channel.
https://www.udemy.com/postman-the-com...
___

// I HAVE A QUESTION!

I do my best to answer all comments here on YouTube but I cannot make any guarantees.

If you have a question, it is best to ask your question on the Postman User Group on Facebook or on the Postman Community (links below).

If you have purchased the Postman Online Course, please use the Q&A section or send me a message on Udemy.

Please do not email me or contact me on other channels as I might not be able to answer. Sorry!

___

// I HAVE A VIDEO IDEA

Do you want me to create a video on a specific topic? Just fill out the form below:

https://forms.gle/uWEzXFQ2viJtZtvZ7

___

// P L A Y L I S T S

▸ Learn Postman | http://bit.ly/2CFaf70

▸ Postman Crash Course | http://bit.ly/2YwEBBT

▸ Postman Tips & Tricks | http://bit.ly/2JLkXyU

___

// F R E E R E S O U R C E S

▸▸▸ DOWNLOAD the FREE Postman Quick Reference Guide
http://bit.ly/postman-quick-reference-yt

▸▸▸ JOIN the Postman User Group on Facebook
http://bit.ly/2OutAMZ

▸▸▸ The OFFICIAL Postman community forum
https://community.getpostman.com/