                    birthday.setDate(date);
                        }
                        reader.moveUp();
                }
                return birthday;
        }

}</pre></div><p>The unmarshal method ensures the valid value for the gender by throwing a
ConversionException for invalid entries.</p>

<p class=highlight>Note, that attributes will always have to be written and read first. You work on a stream and
accessing the value of a tag or its members will close the surrounding tag (that is still 