added parseAttribute() method