Fixed xml generation of entry
Fixed that ValueError was not raised