<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Infopath namespace prefix changes every update</title><link>https://www.infopathdev.com:443/forums/thread/77441.aspx</link><pubDate>Wed, 11 Apr 2012 12:53:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77441</guid><dc:creator>nadjaV</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77441.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=77441</wfw:commentRss><description>I&amp;#39;ve got the same problem. Is it possible to tell IP to use ns1 instead of ns4 or ns5? It looks like it generated a new ns for each form I worked with. Any help is appreciated.</description></item><item><title>Infopath namespace prefix changes every update</title><link>https://www.infopathdev.com:443/forums/thread/65945.aspx</link><pubDate>Fri, 15 Apr 2011 04:31:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65945</guid><dc:creator>smeccy24</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65945.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=65945</wfw:commentRss><description>&lt;p&gt;I have an infopath form which is published in a sharepoint document library. I have a custom feature which automatically transfer infopath field values to a word document template. This feature needs an XML&amp;nbsp;mapping (hardcoded) with Word Content Control and the Xpath with &lt;strong&gt;namespace prefix&lt;/strong&gt; of the&amp;nbsp;infopath field and this is&amp;nbsp;uploaded in the same document library as well.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Example of mapping (&lt;strong&gt;bold&lt;/strong&gt; is the namespace prefix):&lt;/p&gt;
&lt;p&gt;&amp;lt;XMLIntoWordMapping pagesXPath=&amp;quot;/my:myFields[1]&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;mapping wordContentControlAlias=&amp;quot;EmployeeFirstName&amp;quot; xPath=&amp;quot;/&lt;strong&gt;ns1&lt;/strong&gt;:myFields[1]/ns1:EmployeeFirstName[1]&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;mapping wordContentControlAlias=&amp;quot;EmployeeLastName&amp;quot; xPath=&amp;quot;/&lt;strong&gt;ns1&lt;/strong&gt;:myFields[1]/ns1:EmployeeLastName[1]&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;So with the above mapping, my infopath forms with the xpath below will work:&lt;/p&gt;
&lt;p&gt;/ns1:myFields[1]/ns1:EmployeeFirstName[1]&lt;/p&gt;
&lt;p&gt;/ns1:myFields[1]/ns1:EmployeeLastName[1]&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However whenever I have updates on the infopath template itself, it somehow changes the namespace prefix. So for instance, the existing infopath forms will have a &lt;strong&gt;ns1&lt;/strong&gt; as prefix, the new forms (updated template)&amp;nbsp;will have either have ns2 or ns0 thus it doesn&amp;#39;t match my XML mapping and doesn&amp;#39;t export to word!&lt;/p&gt;
&lt;p&gt;Example: /&lt;strong&gt;ns2&lt;/strong&gt;:myFields[1]/&lt;strong&gt;ns2&lt;/strong&gt;:EmployeeFirstName[1]&lt;/p&gt;
&lt;p&gt;How do I make the namespace prefix standard so I can only use 1??&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>