LINQ to XML issue due to xml namespace
问题 I am trying to use Linq to select from XML. Here is an example of the XML: <?xml version="1.0" encoding="UTF-8"?> <listingexport xmlns="http://websitexmlfeed.com/webservice/2/listings" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://websitexmlfeed.com/webservice/2/listings ../listings.xsd"> <listing> <id>00001</id> <name>Modelname</name> <type>Typename</type> </listing> </listingexport> The code I am using is as follows: XDocument le = XDocument.Load(@uri);