Problem with the 'my:' namespace in Infopath 2003
Hi, I'm having some problems with the namespace in Infopath 2003. Can someone please help..
It's a very complicated form with 10 views and around 150 data sources.
My problem is all these data sournces are in 'mstns:' namespace, but someone has just stuffed up something in the form, and all the new data sources I'm trying to create automatically get assigned to a 'my:' namespace. And they don't work properly like others.
var root = _XDocument.DOM.selectSingleNode("/mstns:Workflow");
root.selectSingleNode("my:customerName").text = currResult.custName;
However if I try to assign something to an existing data source which belongs to the existing namespace 'mstns:' like following, it works fine.
root.selectSingleNode("mstns:customerID").text = currResult.custID;
Could someone please let me know how to get the old namespace back, so the new datasource I create will belongs to the old namespace 'mstns:'