getParent works for HTML and XML now