CleanDtdToString() static private method

static private CleanDtdToString ( System.Xml.Linq.XDocument doc ) : string
doc System.Xml.Linq.XDocument
return string
Esempio n. 1
0
        public string WriteToString()
        {
            XElement xelement1 = PlistDocument.WriteElement((PlistElement)this.root);
            XElement xelement2 = new XElement((XName)"plist");

            xelement2.Add((object)new XAttribute((XName)"version", (object)this.version));
            xelement2.Add((object)xelement1);
            XDocument doc = new XDocument();

            doc.Add((object)xelement2);
            return(PlistDocument.CleanDtdToString(doc, this.documentType).Replace("\r\n", "\n"));
        }
Esempio n. 2
0
 public string WriteToString()
 {
     return(PlistDocument.CleanDtdToString(this.m_Doc, (XDocumentType)null).Replace("\r\n", "\n"));
 }
Esempio n. 3
0
 internal static string CleanDtdToString(XDocument doc)
 {
     return(PlistDocument.CleanDtdToString(doc, doc.DocumentType));
 }