下面是我的元素层次结构。如何检查(使用 XPath)AttachedXml元素是否存在于主要消费者的CreditReport下
<Consumers xmlns="http://xml.mycompany.com/XMLSchema">
<Consumer subjectIdentifier="Primary">
<DataSources>
<Credit>
<CreditReport>
<AttachedXml><![CDATA[ blah blah]]>