Extract xml tags from files of different structure

@sereganator
the direct namespace existence is a straight formard approach

  • check default namespace as mentioned by @Yoichi
  • check root element namespace definitions can be done with the attribute property IsNamespaceDeclaration

otherwise you can react on retrieval result counts …Descendendants(…).toList.Count and can also avoid empty result access issues.

Have a look here, maybe you can modify for your scenario

In case of you need more help, then just provide us the more detailed requirements of your case. Thanks