阅读背景:

使用Linq to XML,如何选择具有x个父元素的元素?

来源:互联网 

I am trying to use Linq to XML in my c# program to extract element names from an auto-generated XSD file. This means I cannot do queries based on element names/ contents, and instead need to find elements based on their position in the xsd. I'm trying to do this with a function that returns an element's 'depth'. Somehow, if I use it in my query, I get not only the elements I need but also all underlying elements/attributes. I am guessing I need an "exclude" function in some way, but I don't know how to do this. This is the code I have at the moment:I am trying to use Linq to XML in my c# program




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: