E4X and namespaces

Here's an example of such a node tag :


<parentNode>
 <media:thumbnail/>
</parentNode>

media:thumbnail is not a valid identifier, so it is not possible to access the node that way :


parentNode.media:thumbnail;

The solution has yet already beeen posted on several blogs and can be found at many places on the web.

The short solution :


use namespace media;
parentNode.thumbnail;