add delAttribute method to parser