日期:2014-05-18 浏览次数:20827 次
string xml = "<!DOCTYPE configuration [<!ELEMENT PatchInfos ANY><!ATTLIST PatchInfos ID ID #REQUIRED>]><items>1111</items>"; XmlDocument doc = new XmlDocument(); doc.LoadXml(xml); XmlDocumentType xdt = doc.DocumentType; Response.Write(xdt.InternalSubset);