The <br> tag doesn't require a closing tag. While <br /> or <br/> is considered good syntax, both <br> and <br /> are considered equivalent and valid in HTML5.
If your XML requires the tag to be closed, use a replace function change <br> to <br /> as shown in another answer. </br> is not proper HTML and will not be parsed.