Fetching and Reading XML Data

preview_player
Показать описание
This video shows how you can use the fetch( ) method to do an AJAX call and retrieve and XML file and then read the data from inside that file.
It covers the differences between working with JSON and XML data from an API

Рекомендации по теме
Комментарии
Автор

sir
you just saved
you really really saved me.
when I started teaching myself two years ago, I was always watching your videos and felt super good.
I first wanna announce you that I have been working as full stack engineer the last five months and it is my first job.
I recently thought about an app that I wanted to build and the response from the external api were on xml format and I was stuck .
now, I know how to solve it for sure.
I will publish that app here next week
thanks

gabrielfono
Автор

This changed my life, thank you Steve! I wish I had found this video 10 months ago!

rebelmachine
Автор

Your video helped me with a mistake I had been trying for days! Thanks from Brazil!

LucasSantana-fvwu
Автор

amazing lecture.. i am fan of your voice.. :)

TakshvysDad
Автор

Great video, i will be watching more!

mariumbegum
Автор

Thank you so much! This was exactly what I have been looking for all day!

RF_Productons
Автор

Excelent video! This saved me big time for a project..Thanks!

PacoRomog
Автор

I really appreciate your video
I am currently building an application for help people find domain name easily.
most of the api I see come in xml format.
thanks

gabrielfono
Автор

Subscribed. You explain things very well.

MythicStealth
Автор

thanx a lot Steve! appreciate all your hardwork..thank you so much

ieatdata
Автор

My god, u explained all these so well. Thank u so much

SunilVerma-dplf
Автор

AMAZING WORK, that was outstanding my friend
keep them coming ....

mohamedsadik
Автор

basically: fetch it as text, then pass it to the javascript xml parser to create a DOM-like object

soniablanche
Автор

Thanks, Steve. A great video that I was able to put into action right away. One question remains: Why can I only use the variable xml within this function? Everything that comes after this function has no access to the variable xml anymore.

mikunea
Автор

Hi Steve, Great tutorial!! two questions: 1: In order for this to work do you need a local server running? 2: Can this be done without running a local server?

metifu
Автор

I have copied the exact same example and I get logged in the console the error: "error on line 1 at column 1: Extra content at the end of the document". Can someone help me with this ?

chrisles
Автор

hey. I am getting this error in method fetch():
Fetch API cannot load read.xml. URL scheme must be "http" or "https" for CORS request.

sakshijain
Автор

This video helped me a tonne but I want to add an upload input from my HTML page and grab my XML file from that. How do I go about doing this?

garrylove
Автор

Thanks for the wonderful work!

I want to parse XML elements which is not in the file format but is the response for the API call.

Can you please share video parsing the XML nodes, elements for the API response where response is in XML format ?

tejkumarkempaiah
Автор

Great video - although I came here looking for a solution that doesn't require a browser setting. I'm trying to parse XML API responses with Node...without the use of external libraries. I haven't found anything that works yet.

nikodixon