Explicit Element Closing Tags with System.Xml.Linq Namespace

前端 未结 4 1825
既然无缘
既然无缘 2020-12-20 20:32

I am using the (.NET 3.5 SP1) System.Xml.Linq namespace to populate an html template document with div tags of data (and then save it to disk). Sometimes the div tags are e

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-20 21:06

    With XElement divTag = new XElement("div", String.Empty); you get the explicit closing tag

提交回复
热议问题