respect xml sequence of element (thanks to vpeil)