fork download
  1. using System.Xml;
  2.  
  3. class X{
  4. public static void Main(){
  5. XmlDocument doc1 = new XmlDocument();
  6. XmlDocument doc2 = new XmlDocument();
  7. XmlElement e1 = doc1.CreateElement("root");
  8. XmlNode e2 = doc2.ImportNode(e1,true);
  9. doc2.AppendChild(e2);
  10. }
  11. }
Success #stdin #stdout 0.02s 38080KB
stdin
Standard input is empty
stdout
Standard output is empty