I have the following XML:
I assume the best way to do it is to cast to array:
Consider the following XML:
example url
You can access members, including attributes, using a cast:
It makes everything easier. Hope I helped.