javascript - Cannot get right value from XML -
i have below xml
<person> <age>10></age> <name>jason</name> <bankdetails> <bankname>wfc</bankname> <accountno>xxx</accountno> </bankdetails> <person>
in code if try access person.bankdetails.bankname or other field in bankdetails structure getting undefined. how calling
$value.bankdetails.bankname
here $value being passed root , works fine other param not bankname , accountno
try change bankname bankname on codes why giving undefined error try code
<person> <age>10></age> <name>jason</name> <bankdetails> <bankname>wfc</bankname> <accountno>xxx</accountno> </bankdetails>
Comments
Post a Comment