Someone should check if we could make xtag not send ENDELEM for self-closing tags, as libxml doesn't.