parse XML elements with Choice correctly