Empty elements that are entered in the style "<a/>" are stored and returned in the style "<a></a>":
select xmlextract("/", "<doc><a/> <b></b></doc>") ----------------------------------------- <doc> <a></a> <b></b></doc>