Python's xml.etree getiterator equivalent to C#

后端 未结 2 1143
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-24 08:44

I have this XML file : http://dl.dropbox.com/u/10773282/2011/perf.xml

\"enter

It h

2条回答
  •  不知归路
    2021-01-24 09:12

    You should try Linq to XML... Quite easy to use:

    var xml = XDocument.Load(filename);
    var res = from p in xml.Root.Elements("Class").Elements("ClassKeyName") select p.Value;
    

提交回复
热议问题