Is there any way to get the name, level and full path of all elements in any given xml hierarchy? so I can check the structure.

I am using SQL server 2005

thanks a lot