How to parse XML responses in Postman

preview_player
Показать описание
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.

___

// 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.
___

// 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:

___

// P L A Y L I S T S

___

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

▸▸▸ DOWNLOAD the FREE Postman Quick Reference Guide

▸▸▸ JOIN the Postman User Group on Facebook

▸▸▸ The OFFICIAL Postman community forum
Рекомендации по теме
Комментарии
Автор

now i have an xml parser, but i need to tell the compiler that (if the request was sent in xml return response in xml, without enforcing to send Accept Header) how it should be?

rajaadolani
Автор

can you please the same with a normal nested json request?

Pingsmingu
Автор

Hi Valentin. is there any website where we can parse the response in lesser time? Or does it have to be done manually only?

dhananjaymalhotra
Автор

Hello
How can we achieve this for html response.
Can we convert html to json and save value in a variable

nitinfudani
Автор

Hey Valentin, The audio is a little bit 'chipmonkey' around the 2:35 mark, it's only for about 10 seconds though. :) Was that just to speed through the console logging? :)

danny_dainton
Автор

Hi Valentin, how can I parse SOAP in Postman to create variables? I'm having trouble parsing this type of response <soap:Envelope<soap:Header> . My first step was to convert the response to jsonObject.

mylenna
Автор

But using the index 0, 1, 2, 3 is bit fragile, Is there is any way to check for presence of field(name) in XML rather than by its index

srinikethajessu
Автор

How can we find Set 1 by the name? What if there were 1000 groups and I need to find a group with Set: "Set 738" for example

evgenisamoilenko
Автор

Looks like xml2json has been deprecated in favor of xml2js.

MichaelGlaser-mgut
Автор

Hey Buddy. Is there a way to parse HTML file? I have built a simple website with HTML, CSS and PHP. I want to fetch a JSON response. Could you please help me..

ankurpatel
Автор

Hi Valentin, your vids on postman are superb, keep the good job up. Can you help with the following please var jsonObject = xml2Json(responseBody);
does not seem to work, in this instance how would I access this element?

MilenMinchev
Автор

Can have request and response log in tests?

nagarajn
welcome to shbcf.ru