I don't see an explanation for using curly brackets in: https://msdn.microsoft.com/en-us/library/bb353813(v=vs.110).aspx
I noticed in an exam:
feed.Descendants("{urn:CFI}Flight").Concat(feed.Descendants(Flight));
The xml it's referring to was:
<AirlineFeed>
<Flight xmlns:"urn:cfi" name:"AS515">
<Seats>123</Seats>
</Flight>
<Flightname:"UN24">
<Seats>96</Seats>
</Flight>
</AirLineFeed>
What does the curly bracket do? Thanks.
From the page you linked: https://msdn.microsoft.com/en-us/library/bb353813(v=vs.110).aspx
The method
XContainer.Descendants()
takes a paramaterXName
of typeSystem.Xml.Linq.XName
.If you look at the msdn page for
System.Xml.Linq.XName
: https://msdn.microsoft.com/en-us/library/system.xml.linq.xname(v=vs.110).aspxYou can see from Remarks:
and from Using Expanded Names