Hi,
correct me if i'm wrong (never used 2007) but i thinkyou need to define the namespace before you can start working with it
Infopath 2003 code
var websobj=XDocument.DataObjects["list_machines"] ; //list_machines is the name of my secondary data service
websDOM=websobj.DOM
websDOM.setProperty("SelectionNamespaces",'xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:dfs="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution"
xmlns:ns2="http://tempuri.org/"');
Dim XpathNav2 As XPathNavigator = Me.DataSources(strDataSource2).CreateNavigator
here you specify your secondayr datasource but you don't tell infopath what namespace to use, hence the dfs (dataformsolution) error i think