Function Contains in XElement
How do I get if the XElement Contains Specific chi开发者_JAVA百科ldren ?
Use HasElements
or HasAttributes
.
If you want to check for a specific set of elements, look here:
Checking an XElement for Existence of One of Several Possible XElements
精彩评论