Does XPath will return a object other than String
- by Kalyan
I have map xml as below. I can retrieve a value using XPath but can I retrieve object instead?. For example I want Map object to be retured if I say /list/* . Is it possible to retrieve as object.
<list>
<map>
<val name="obj_type">USER</val>
<val name="ret_name">user</val>
<list name="attributes">
<map>
<val name="obj_type">USER_ID</val>
<val name="ret_name">userID</val>
</map>
<map>
<val name="obj_type">
USER_UsernamePasswordCredential
</val>
<list name="attributes">
<map>
<val name="obj_type">UNP_Username</val>
<val name="ret_name">UserName</val>
</map>
<map>
<val name="obj_type">UNP_Password</val>
<val name="ret_name">Password</val>
</map>
</list>
</map>
</list>
</map>
</list>