When you denote the application tag like above, you depend on the leniency of the parser - correcly close with </application>, not another, empty <application/> tag.
application
</application>
<application/>