misplaced elements and missing namespace