You first need to get the DOM of your secondary datasource. You can use
var secondary = XDocument.GetDOM("Name of your secondary datasource"); and also don't forget to set the namespace:
secondary.setProperty("SelectionNamespace", "your namespace string"). now you should be able to use:
secondary.DOM.selectSingleNode(".........");
Does this help ?