Checking an XElement for Existence of One of Several Possible XElements
问题 Is there a way to determine if an XElement contains one of any specified elements? For example, I have XElements that I'll want to check: Dim xe1 = <color><blue/></color> Dim xe2 = <color><red/></color> Dim xe3 = <color><powderBlue/></color> Dim xe4 = <color><aqua/></color> Dim xe5 = <color><green/></color> I'd like to be able to query any of the xelements to see if they containt the elements <red/> , <green/> or <blue/> below them and return true if so, false if not. I was hoping that it