<root namespace.....><schema>....//schema goes here</schema><dataroot><dvd><id>####</id><title>########</title></dvd>...//more records here</dataroot></root>
private void OnAddInputChanged(object sender, EventArgs e){string add = addValue.Value;// Get the user input valuestring library = DataDirectory + "Library.xml";//create full path to library filestring fileName = add + ".xml"; //create filename ([UserInput].xml)string source = DataDirectory + fileName;//create full path to newly added file XmlDocument docLibrary = new XmlDocument();docLibrary.Load(library);//load libraryXmlDocument docSource = new XmlDocument();docSource.Load(source);//load new file XmlNamespaceManager nsmgrLibrary = new XmlNamespaceManager(docLibrary.NameTable);nsmgrLibrary.AddNamespace("xsd", "http://www.w3.org/2001/XMLSchema");//add namespaceXmlNamespaceManager nsmgrNew = new XmlNamespaceManager(docSource.NameTable);nsmgrNew.AddNamespace("xsd", "http://www.w3.org/2001/XMLSchema");//add namespace XmlNode newNode= docSource.SelectSingleNode("//xsd:dataroot/DVD", nsmgrNew);//load first node from new fileXmlNode libraryRoot = docLibrary.DocumentElement;//get root element of library fileXmlNode importNewNode = docLibrary.ImportNode(newNode, true);//import new node libraryRoot.AppendChild(importNewNode);//append to the root node}