<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Problem with the 'my:' namespace in Infopath 2003</title><link>https://www.infopathdev.com:443/forums/thread/22891.aspx</link><pubDate>Thu, 06 Sep 2007 00:42:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22891</guid><dc:creator>kris.fan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22891.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=22891</wfw:commentRss><description>&lt;p&gt;Hi Shiva,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks! I think I tried that and it didn&amp;#39;t work. But I&amp;#39;ll give it another try next week, and I&amp;#39;ll get back to you if I&amp;#39;m getting any problems:D&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Cheers!!&lt;/p&gt;
&lt;p&gt;Kris&lt;/p&gt;</description></item><item><title>Re: Problem with the 'my:' namespace in Infopath 2003</title><link>https://www.infopathdev.com:443/forums/thread/22882.aspx</link><pubDate>Wed, 05 Sep 2007 10:24:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22882</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22882.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=22882</wfw:commentRss><description>&lt;p&gt;Hi Kris Welcome to the forums,&lt;/p&gt;
&lt;p&gt;Here is “my” and &amp;#39;mstns&amp;#39; are name space prefix of your form. By default InfoPath gives us name space prefix is “my”. If you want to change the prefix of namespace in your form then directly change into script.vbs or script.js file. In this file on&amp;nbsp;top the line you have to change:&lt;/p&gt;
&lt;p&gt;XDocument.DOM.setProperty &amp;quot;SelectionNamespaces&amp;quot;, &amp;quot;xmlns:&lt;b&gt;my&lt;/b&gt;=&amp;quot;&amp;quot;&lt;a href="http://schemas.microsoft.com/office/infopath/2003/myXSD/2007-09-05T10:16:16"&gt;http://schemas.microsoft.com/office/infopath/2003/myXSD/2007-09-05T10:16:16&lt;/a&gt;&amp;quot;&amp;quot;&amp;quot;&lt;/p&gt;
&lt;p&gt;Above bolded prefix name place you can change the prefix name whichever you want it.&lt;/p&gt;
&lt;p&gt;Hope this helps you&lt;/p&gt;</description></item><item><title>Problem with the 'my:' namespace in Infopath 2003</title><link>https://www.infopathdev.com:443/forums/thread/22847.aspx</link><pubDate>Tue, 04 Sep 2007 06:30:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22847</guid><dc:creator>kris.fan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22847.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=22847</wfw:commentRss><description>&lt;p&gt;Hi, I&amp;#39;m having some problems with the namespace in Infopath 2003. Can someone please help..&lt;/p&gt;
&lt;p&gt;It&amp;#39;s a very complicated form with 10 views and around 150 data sources.&lt;/p&gt;
&lt;p&gt;My problem is all these data sournces are in &amp;#39;mstns:&amp;#39; namespace, but someone has just stuffed up something in the form, and all the new data sources I&amp;#39;m trying to create automatically get assigned to a &amp;#39;my:&amp;#39; namespace. And they don&amp;#39;t work properly like others.&lt;/p&gt;
&lt;p&gt;e.g.&lt;br /&gt;var root = _XDocument.DOM.selectSingleNode(&amp;quot;/mstns:Workflow&amp;quot;);&lt;br /&gt;root.selectSingleNode(&amp;quot;my:customerName&amp;quot;).text = currResult.custName;&lt;/p&gt;
&lt;p&gt;The above code gives javascript error where the code could not get &amp;quot;my:customerName&amp;quot; node.&lt;/p&gt;
&lt;p&gt;However if I try to assign something to an existing data source which belongs to the existing namespace &amp;#39;mstns:&amp;#39; like following, it works fine.&lt;br /&gt;root.selectSingleNode(&amp;quot;mstns:customerID&amp;quot;).text = currResult.custID;&lt;/p&gt;
&lt;p&gt;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 &amp;#39;mstns:&amp;#39;&lt;/p&gt;
&lt;p&gt;Thanks alot!!&lt;br /&gt;Kris&lt;/p&gt;</description></item></channel></rss>