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

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -