Below is my element hierarchy. How to check (using xpath) that AttachedXml element is present under CreditReport of Primary
take look at my example
Editors Choice creative common
now how to check if creative common is exist
creative common
tocheading/subj-group/subject/text() = 'creative common'
hope this help you