let _parse accept XMLDocument, too