32-year-old Jose Xochihua pleaded guilty to the charges after attacking his ex-girlfriend.