Here, I add selecting nodes based on their type.
http://code.google.com/p/google-depan/source/detail?r=63
Thanks Lee