是否存在指定屬性不存在的語法?LinqToXml;查詢屬性不存在的位置
Dim xe As XElement = _
<xml>
<el att1="ABC" att2="XYZ"/>
<el att1="ABC"/>
<el/>
</xml>
Dim xe2 As IEnumerable(Of XElement)
xe2 = From c In xe.<el> Where [email protected] = "ABC" And DoesNotExist([email protected])
'Return: <el att1="ABC"/>
非常感謝,看不到樹木! – baileyswalk