Thanks again you have been mose helpful. I am still a bit confused. My secondary source has a Infodath default structure of: myfields/mydata/ProjectCategory/Last_Used. To Dim "Last_Used" to use in my code would i do this?
projectCategory.selectSingleNode("/my:myFields/my:dataFields/my:ProjectCategory)
dim secField as IXMLDOMDocument2 = e.XDocument.DOM.selectSingleNode("/my:myFields/my:dataFields/my:ProjectCategory/my:Last_Used")
quote:
Originally posted by Agni
For primary DOM Namespace is set at the top of your code, this is taken care by Visual studio/InfoPath.
You can see this it starts with "<InfoPathNamespace..."
For secondary doms you have to take care of all those things.
Agni
InfoPath Dev India