if child elements, look for parent link, fix #15
Merge pull request #17 from matallo/patch-1

if child elements, look for parent link, fix #15