Does XPath will return a object other than String
Posted
by
Kalyan
on Stack Overflow
See other posts from Stack Overflow
or by Kalyan
Published on 2011-02-03T12:29:12Z
Indexed on
2011/02/03
23:26 UTC
Read the original article
Hit count: 327
xpath
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>
© Stack Overflow or respective owner