Officials in Germany are pledging to stamp out violent protests after demonstrators turned to looting.