0

How I can Get value from xml

xml-> <a> <b>Hello world</b> <c>Hi World</c> </a> JS-> var xmlDoc=xml.responseXML; xmlDoc. -> I am calling this code -< } Note=I wrote XMLHttpRequest etc.

7th Jun 2017, 5:32 PM
Serhat Merak
Serhat Merak - avatar
6 Réponses
+ 17
xmlDoc = new XMLHttpRequest(); xmlDoc.open("GET","source"); xmlDoc.onload = function() { alert(this.responseXML); };
7th Jun 2017, 6:22 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 5
can u mess with XML or XHTML in playground? or do I have go try this on my own compiler? I would love to start learning/messing with xml and JavaScript sorry for off topic post
7th Jun 2017, 6:29 PM
Russel Reeder
Russel Reeder - avatar
+ 5
That's awesome bro.
7th Jun 2017, 6:36 PM
Russel Reeder
Russel Reeder - avatar
+ 1
I started learning 2hours ago 😂😂
7th Jun 2017, 6:33 PM
Serhat Merak
Serhat Merak - avatar
0
could you look my new question
9th Jun 2017, 3:12 PM
Serhat Merak
Serhat Merak - avatar
- 1
Actually, I want to learn this And I found, Thank you 😊😊 xmlDoc.getElementsByTagName("a")[0].children[0].childNodes[0].nodeValue
7th Jun 2017, 6:26 PM
Serhat Merak
Serhat Merak - avatar