hi andywt,
You will need to create an IXMLDomDocument2
Dim projectCategory As IXMLDOMDocument2 = e.XDocument.GetDOM("Project Category")
projectCategory.setProperty("SelectionNamespaces", "Namespace")
Here instead of "NameSpace" copy all of the namespaces like xmlns:xsi="..." from your secondary dom over to here. For details on the syntax look at the top at how the namespaces are set for the main dom. This will be at the top of your code file and will be autogenerated by InfoPath.
Now get the correct XPath of the node that you are trying to access - You can do that by looking at the node structure in the data source pane.
and write this
projectCategory.selectSingleNode(...);
and it should work.
Shanthi
InfoPath Dev India
Shanthi Reddy