Fixes open-close confusion in XmlTag