The XHTMLSerializer generates
<br></br>
when there is a
<br />
tag.
(there must be the same problem with <hr /> by the way...)