ja das stimmt, ich habe auch mit XmlNameSpaceManager versucht. 
Es war mir aber nicht klar, was man in Zeile 3 schreibt. Jetzt verstehe ich. 
Danke!
Übrigens, wenn ich nach einer bestimmten Knote(node) suchen möchte.
Z.B.
		                     
             C#-Quelltext
                        C#-Quelltext                    
           	 										| 1:2:
 3:
 4:
 5:
 6:
 7:
 8:
 9:
 10:
 11:
 12:
 13:
 14:
 15:
 16:
 17:
 18:
 19:
 20:
 21:
 22:
 23:
 24:
 25:
 26:
 
 |  public static void OpenXlmFile(string str){
 XmlDocument doc = new XmlDocument();
 string path = "XML/NLog.config";
 try
 {
 doc.Load(path);
 XmlNode node = doc.DocumentElement;                     if (node != null)
 {
 foreach (var n in node.ChildNodes)
 {
 if (node.Name.Equals("logger"))
 {
 }
 }
 }
 }
 catch (Exception e)
 {
 Console.WriteLine(e);
 throw;
 }
 
 }
 | 
		
	  
Brauche ich XmlNameSpaceManager Klass, oder?
hier noch ein Beispiel:
		                     
             C#-Quelltext
                        C#-Quelltext                    
           	 										| 1:2:
 3:
 4:
 5:
 6:
 7:
 8:
 9:
 10:
 11:
 12:
 13:
 14:
 
 | XmlDocument doc = new XmlDocument();string path = @"C:\MyFiles\XMLFile1.xml";
 doc.Load(path);
 IEnumerator ie = doc.SelectNodes("/appSettings/add").GetEnumerator();
 
 while (ie.MoveNext())
 {
 if ((ie.Current as XmlNode).Attributes["key"].Value == "ServerAddress")
 {
 (ie.Current as XmlNode).Attributes["value"].Value = "hello";
 }
 }
 
 doc.Save(path);
 |