changed some conditions to use new child_elements method, added child_elements accessor to AbstractNode