1 使用HasElements或HasAttributes。 如果你想检查一组特定的元素,看看这里:Checking an XElement for Existence of One of Several Possible XElements 来源 2011-03-27 14:14:38