![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am trying to parse the XML below into three variables using the code below, but it is not working. Can anyone help to identify what I am doing wrong? [...] XML: ?xml version="1.0"? result status>200</status url>https://127.0.0.1/test</url message>Success</message /result Javascript code: var XMLresult = req.responseXML; var Redirect = XMLresult.getElementsByTagName("url"); var status = XMLresult.getElementsByTagName("status"); var Message = XMLresult.getElementsByTagName("message"); |
![]() |
| Thread Tools | |
| Display Modes | |
| |