xd_node: Move xd_find to xd_doc API