Ken,
At the top of the code is a line that specifies the namespace you are going to use. You can see it below. Also, don't forget the // before the name (my) in other words: "//my:fieldName"
// The following line is created by Microsoft Office InfoPath to define the prefixes
// for all the known namespaces in the main XML data file.
// Any modification to the form files made outside of InfoPath
// will not be automatically updated.
//<namespacesDefinition>
XDocument.DOM.setProperty("SelectionNamespaces", 'xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2004-10-19T21:13:19"');
//</namespacesDefinition>
|