Do not succeed to get XML attribute from response


I try to parse this xml:

<?xml version="1.0" encoding="utf-8"?>
<Response xmlns:xsd="">
        <Response ResponseCode="Ok">
    <Worker MajorVersion="1" MinorVersion="0" FixVersion="1">

I try to get to the
from the xml.

I convert the xml to json :
var xmlTree = xml2Json(responseBody);

I can not reach to the xml attribute its under a $ sign - and I can not reach it.

Please help.

Thanks a lot

Hi Lee- I had this same problem, and I think I’ve found the solution! Just put the dollar sign in the command that you are using to reach the attribute. For example, I had a response that looked like the attached image, and I was able to access it with[0].$.id

I hope this helps you! XMLToJSON