extract subnodes