You can try upload the same xml sample document and extract it
for example XQL query: Below here where @domain is nothing but target attribute in your sample above:
/cXML/Header/To/Credential[(@domain $eq$ ‘NetworkId’ $or$ @domain $eq$ ‘NetworkID’ $or$ @domain $eq$ ‘DUNS’ $or$ @domain $eq$ ‘AribaNetworkUserId’) $and$ ($not$ @type $or$ @type $eq$ ‘’)]/Identity
#webMethods#B2B-Integration#Integration-Server-and-ESB