Hi,
ok, I went through the links. My code looks like this now:
>>
XDocument.DOM.setProperty("SelectionNamespaces", 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:q="http://schemas.microsoft.com/office/infopath/2003/ado/queryFields" xmlns:d="http://schemas.microsoft.com/office/infopath/2003/ado/dataFields" xmlns:dfs="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-03-08T23:17:48" xmlns:xd="http://schemas.microsoft.com/office/infopath/2003" xmlns:tns="http://tempuri.org/"');
var userRowNode = XDocument.DOM.selectSingleNode("/my:myFields/dfs:dataFields/tns:getInstanceResponse/tns:getInstanceResult/d:workitem/d:tbl_User/d:tbl_UserRow");
userRowNode.selectSingleNode("tbl_UserType").text = "Value of user type";
<<
The issue "not declared namespace-prefix: 'd'" seems to be solved but running the next line throws "'null' or not an object". Therefore I think something must be wrong in the xpath - right?
Do you know where I can get information about the structure of a xpath? I don't know in which case I have to use my:, dfs:, tns: or d:.
Thank you very much for your help!
Regards Ulk