I'm having problems to get the values from the tags with no node value, for example:

<itemdata name="someName" />

It seems I can't get the nodeName in this situation. How should I retrieve the attributes values of these tags?