internal static Text Create(IDOMText Text) { if (Text is IDOMCDATASection) { return(CDATASection.Create(Text as IDOMCDATASection)); } else { return(new Text(Text)); } }
/// <summary> /// Creates a CDATA section node with the specified data. /// </summary> /// <param name="Data">CDATA section data.</param> /// <returns>The new CDATA section node.</returns> public CDATASection CreateCDATASection(string Data) { return(CDATASection.Create(document.createCDATASection(Data))); }