get XML Namespace Elements with C#

前端 未结 2 1366
清酒与你
清酒与你 2021-01-26 22:58

I having a bit of trouble parsing an xml file with a namespace
XML Format


<         


        
2条回答
  •  半阙折子戏
    2021-01-26 23:30

    Here's one in Regular expression

    string xmlFileString="";
    
    Regex r=new Regex("(?<=|)",RegexOptions.Singleline);
    
    foreach(Match m in r.Matches(xmlFileString))
    Console.WriteLine(m.Value);//your required output
    

提交回复
热议问题