Understanding Linq To Xml - Descendants return no results

后端 未结 2 494
谎友^
谎友^ 2020-12-01 20:29

I\'m a completly New to Linq2XML as I code to much lines to perform simple things, and in a simple project I wanted to give it a try...

I\'m with this for 2 hours an

2条回答
  •  旧巷少年郎
    2020-12-01 21:07

    This should solve you isssue (replace the namespace with the right URL):

    XNamespace ns = "https://ssl.ditonline...";
    doc.Descendants(ns + "TransactionInformationType");
    

提交回复
热议问题