🦩 Hello everyone! 🟢 00:00 - introduction 🟢 01:00 - handle xml from string 🟢 01:40 - use of DOM parser 🟢 03:24 - element navigation 🟢 05:20 - handle xml from fetch request
You're awesome! Thank you so much for this great tutorial -- because of you now I don't have to ttml-to-json python package, and my code runs way much faster!
When I paste in the xml as he has it (1st part of the video), the editor throws an error and doesn't like the XML pasted. Anyone else have this problem?
@@dcode-software Hi! I mean the JS code you write in your videos. But, no prblem I can write again. Thank you for your kindness and videos that help us. 👋
Wow, exactly what I needed! I was about to go crazy with some regex, but I think you just saved me a lot of pain
Absolutely! I'm glad to hear that I prevented you from going down that path (it would have been a pain)
🦩 Hello everyone!
🟢 00:00 - introduction
🟢 01:00 - handle xml from string
🟢 01:40 - use of DOM parser
🟢 03:24 - element navigation
🟢 05:20 - handle xml from fetch request
Humble and humbling DOMParser, nice, didn't know,
Awesome 😎
You're awesome!
Thank you so much for this great tutorial -- because of you now I don't have to ttml-to-json python package, and my code runs way much faster!
Thank you for the tutorial, it helps me a lot at work. ❤
keep up the awesome work bro!💪
Thanks, you too!
Can you please tell how to parse any content data from dynamic html file
Great content. How can I ask If an element exists inside the XML document? Thanks for this great an easy tutorial.
If you have error put in your xml
Excellent !👍
great video!
What about big file?? Is there in 2023 native SAX parser??
Thank you so much! 😸
Excelente!! Me ajudou muito!
Is it true that text/xml is parsed as US-ASCII while application/xml is parsed as UTF-8?
Useful video, thanks.
When I paste in the xml as he has it (1st part of the video), the editor throws an error and doesn't like the XML pasted. Anyone else have this problem?
Yeah I did, I was using ' instead of ` .
Where were you like 2 months ago??
Were you looking to parse XML 2 months ago? 😆
thanks, bro
i can not split my string literal across multiple lines
How to convert this XML string to json??
function xml2json(xml) {
if (xml.children.length === 0)
return xml.textContent.trim()
const obj = {}
for (let child of xml.children) {
const name = child.nodeName
if (obj[name] === undefined)
obj[name] = xml2json(child)
else {
if (!Array.isArray(obj[name]))
obj[name] = [obj[name]]
obj[name].push(xml2json(child))
}
}
return obj
}
Can you do somme video about react
Can you please do a video about how to create like vuejs library I mean reactivity etc I watched the your spa video and I like it .
Verry helpful channel!.. 👏 Do you have a link for codes? Or shall I write it! :) 🌹
Hey, thank you! I assume you have some XML somewhere else but if not there's plenty of XML examples online - any of them should work 😎👍
@@dcode-software Hi! I mean the JS code you write in your videos. But, no prblem I can write again. Thank you for your kindness and videos that help us. 👋
❤