1. string DestinationMapFile = @"D:\ATS\Application\C#\Respos\GitHubFirstTest\HelloWorld\ConsoleApp\bin\Debug\31005023347801060010318094853001.xml";
    2. XmlDocument xmlFile = new XmlDocument();
    3. xmlFile.Load(DestinationMapFile);
    4. if (xmlFile.SelectSingleNode("//layerInfo") != null)
    5. {
    6. xmlFile.SelectSingleNode("//layerInfo").RemoveAll();
    7. }
    8. if (xmlFile.SelectSingleNode("//CardID") != null)
    9. {
    10. xmlFile.SelectSingleNode("//CardID").RemoveAll();
    11. }