Hi,
That don't go when you are in preview mode so please publish and after try (security)!
Second if that always don't work try to load for example a xml from this path for see if your path is correct!
Other things (your code):
newDocument.setProperty("SelectionNamespaces", "xmlns:dfs=\"http://schemas.microsoft.com/office/infopath/2003/dataFormSolution\" xmlns:ns1=\"http://schemas.xmlsoap.org/wsdl/soap/\"");
IXMLDOMNode oNode = newDocument.selectSingleNode("/my:myFields/my:myFields:field1");If youtry to navigate on the my: prefix you need to declare our my namespace not ns1: or dfs! The declaration of namespace my for your form is at the top of the formcode.cs!
++
Thierry
Every moment hesitated is a moment gone for life!!! Think about it
Infopath 2007, Langage: C#2.0 (Modèle Objet 2003)
merci de lire ceci