<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Get Attribute of xsf:xDocumentClass Node in manifest.xsf</title><link>https://www.infopathdev.com:443/forums/thread/59330.aspx</link><pubDate>Mon, 27 Sep 2010 14:41:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59330</guid><dc:creator>colecg</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59330.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=59330</wfw:commentRss><description>&lt;p&gt;Thank you very very much&lt;/p&gt;
&lt;p&gt;Yes, this gave me back what I needed.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Amira&lt;/p&gt;</description></item><item><title>Re: Get Attribute of xsf:xDocumentClass Node in manifest.xsf</title><link>https://www.infopathdev.com:443/forums/thread/59329.aspx</link><pubDate>Mon, 27 Sep 2010 14:33:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59329</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59329.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=59329</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;blockquote&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; pi = MainDataSource.CreateNavigator().SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;/processing-instruction()[local-name() = &amp;#39;mso-infoPathSolution&amp;#39;]&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;font size="2"&gt;will get you an XPathNavigator to that processing instruction.&amp;nbsp; Would that be sufficient for what you need to do?&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Get Attribute of xsf:xDocumentClass Node in manifest.xsf</title><link>https://www.infopathdev.com:443/forums/thread/59328.aspx</link><pubDate>Mon, 27 Sep 2010 13:57:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59328</guid><dc:creator>colecg</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59328.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=59328</wfw:commentRss><description>&lt;p&gt;Hello Jimmy&lt;/p&gt;
&lt;p&gt;I am trying to use one content type in couple of libraries.&lt;/p&gt;
&lt;p&gt;I am trying to get the name of the library where the form&amp;nbsp;is&amp;nbsp;used in as content type (find .xml file created based on this content type) so I can do some actions accordingly.&lt;/p&gt;
&lt;p&gt;So, from this above example you gave, how would I say&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlDoc.Load(&lt;strong&gt;THIS&lt;/strong&gt;);&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;so I can then&amp;nbsp;proceed with accesing &lt;strong&gt;XmlProcessingInstruction,&lt;/strong&gt; so I can obtain href field from&lt;/p&gt;
&lt;p&gt;&amp;lt;?mso-infoPathSolution productVersion=&amp;quot;12.0.0&amp;quot; PIVersion=&amp;quot;1.0.0.0&amp;quot; &lt;strong&gt;href=&amp;quot;some path&amp;quot;&lt;/strong&gt; /&amp;gt;&lt;/p&gt;
&lt;p&gt;for every instance of this content type no matter of is location&lt;/p&gt;
&lt;p&gt;&amp;nbsp;thank you in advance&lt;/p&gt;
&lt;p&gt;amira&lt;/p&gt;</description></item><item><title>Re: Get Attribute of xsf:xDocumentClass Node in manifest.xsf</title><link>https://www.infopathdev.com:443/forums/thread/47399.aspx</link><pubDate>Mon, 28 Sep 2009 18:49:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47399</guid><dc:creator>fromonesource</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/47399.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=47399</wfw:commentRss><description>&lt;p&gt;Calling the preservation before loading the xml worked perfectly! Thank you so much!&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Get Attribute of xsf:xDocumentClass Node in manifest.xsf</title><link>https://www.infopathdev.com:443/forums/thread/47375.aspx</link><pubDate>Mon, 28 Sep 2009 11:09:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47375</guid><dc:creator>deepak483</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/47375.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=47375</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Interestingly the place where you call &lt;span&gt;&lt;span class="input"&gt;PreserveWhitespace matters, the &lt;a href="http://msdn.microsoft.com/en-us/library/system.xml.xmldocument.preservewhitespace.aspx%20" target="_blank"&gt;msdn article&lt;/a&gt; says&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;quot;&lt;i&gt;If &lt;span&gt;&lt;span class="input"&gt;PreserveWhitespace&lt;/span&gt;&lt;/span&gt; is &lt;span&gt;&lt;span class="input"&gt;true&lt;/span&gt;&lt;/span&gt; before &lt;span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.xml.xmldocument.load.aspx" id="ctl00_MainContent_ctl31_ctl00_ctl00"&gt;Load&lt;/a&gt;&lt;/span&gt; 
or &lt;span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.xml.xmldocument.loadxml.aspx" id="ctl00_MainContent_ctl31_ctl00_ctl01"&gt;LoadXml&lt;/a&gt;&lt;/span&gt; 
is called, white space nodes are preserved; otherwise, if this property is 
&lt;span&gt;&lt;span class="input"&gt;false&lt;/span&gt;&lt;/span&gt;, significant white space is 
preserved, white space is not.&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;&lt;i&gt;If &lt;span&gt;&lt;span class="input"&gt;PreserveWhitespace&lt;/span&gt;&lt;/span&gt; is &lt;span&gt;&lt;span class="input"&gt;true&lt;/span&gt;&lt;/span&gt; before &lt;span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.xml.xmldocument.save.aspx" id="ctl00_MainContent_ctl31_ctl00_ctl02"&gt;Save&lt;/a&gt;&lt;/span&gt; 
is called, white space in the document is preserved in the output; otherwise, if 
this property is &lt;span&gt;&lt;span class="input"&gt;false&lt;/span&gt;&lt;/span&gt;, &lt;span&gt;&lt;span class="input"&gt;XmlDocument&lt;/span&gt;&lt;/span&gt; auto-indents the output.&lt;/i&gt;&amp;quot;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;See if this was what you did&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Get Attribute of xsf:xDocumentClass Node in manifest.xsf</title><link>https://www.infopathdev.com:443/forums/thread/47326.aspx</link><pubDate>Fri, 25 Sep 2009 13:11:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47326</guid><dc:creator>deepak483</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/47326.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=47326</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;What method are you using to do the changes. I am using this &lt;/p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nameSpaceManager.AddNamespace(&amp;quot;xsf&amp;quot;, gXsfNamespace2003);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nameSpaceManager.AddNamespace(&amp;quot;xsf2&amp;quot;, gXsfNamespace2007);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XPathNavigator nodePathToModify = manifestXML.CreateNavigator().SelectSingleNode(PathToModify, nameSpaceManager);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nodePathToModify.SetValue(ValueInxPath);&lt;br /&gt;&lt;br /&gt;hope this helps...Because in some of trials, I was getting the same result as it is doing with your xsf file.&lt;br /&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Get Attribute of xsf:xDocumentClass Node in manifest.xsf</title><link>https://www.infopathdev.com:443/forums/thread/47278.aspx</link><pubDate>Wed, 23 Sep 2009 15:39:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47278</guid><dc:creator>fromonesource</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/47278.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=47278</wfw:commentRss><description>&lt;p&gt;When PreserveWhitespace is not set, the manifest file is saved in this format:&lt;/p&gt;&lt;p&gt;&amp;lt;xsf:property name=&amp;quot;namespace&amp;quot; type=&amp;quot;string&amp;quot; value=&amp;quot;http://schemas.microsoft.com/office/infopath/2003/myXSD/2008-07-29T15:31:35&amp;quot;&amp;gt; &lt;br /&gt;&amp;lt;/xsf:property&amp;gt; &lt;/p&gt;&lt;p&gt;and I have errors because there are spaces within the opening and closing tags. It should look like:&lt;/p&gt;&lt;p&gt;&amp;lt;xsf:property name=&amp;quot;namespace&amp;quot; type=&amp;quot;string&amp;quot; value=&amp;quot;http://schemas.microsoft.com/office/infopath/2003/myXSD/2008-07-29T15:31:35&amp;quot;&amp;gt;&amp;lt;/xsf:property&amp;gt; &lt;/p&gt;&lt;p&gt;But when I set PreserveWhitespace to true, the manifest file&amp;#39;s xml is compressed into one line like: &lt;/p&gt;&lt;p&gt;&amp;lt;xsf:fileProperties&amp;gt;&amp;lt;xsf:property name=&amp;quot;namespace&amp;quot; type=&amp;quot;string&amp;quot; value=&amp;quot;http://schemas.microsoft.com/office/infopath/2003/myXSD/2008-07-29T15:31:35&amp;quot;&amp;gt;&amp;lt;/xsf:property&amp;gt;&amp;lt;xsf:property name=&amp;quot;editability&amp;quot; type=&amp;quot;string&amp;quot; value=&amp;quot;full&amp;quot;&amp;gt;&amp;lt;/xsf:property&amp;gt;&amp;lt;xsf:property name=&amp;quot;rootElement&amp;quot; type=&amp;quot;string&amp;quot; value=&amp;quot;myFields&amp;quot;&amp;gt;&amp;lt;/xsf:property&amp;gt; &lt;/p&gt;&lt;p&gt;&amp;nbsp;This is causing errors as well.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Is there any middle ground? &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Get Attribute of xsf:xDocumentClass Node in manifest.xsf</title><link>https://www.infopathdev.com:443/forums/thread/46896.aspx</link><pubDate>Sat, 12 Sep 2009 08:29:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46896</guid><dc:creator>deepak483</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46896.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=46896</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Any one down this path remember to use &lt;b&gt;&amp;quot;XMLDocument.PreserveWhitespace = True&amp;quot;.&lt;/b&gt;&lt;span style="color:blue;"&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt; gave me night mares, until I used this before modifying the manifest.xsf file.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Get Attribute of xsf:xDocumentClass Node in manifest.xsf</title><link>https://www.infopathdev.com:443/forums/thread/46259.aspx</link><pubDate>Wed, 26 Aug 2009 16:30:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46259</guid><dc:creator>fromonesource</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46259.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=46259</wfw:commentRss><description>&lt;p&gt;Wow, this is perfect. I owe you a drink when I visit Japan! &lt;/p&gt;</description></item><item><title>Re: Get Attribute of xsf:xDocumentClass Node in manifest.xsf</title><link>https://www.infopathdev.com:443/forums/thread/46247.aspx</link><pubDate>Wed, 26 Aug 2009 12:29:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46247</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46247.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=46247</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;That&amp;#39;s because they&amp;#39;re not DocumentElements; they&amp;#39;re processing instructions.&amp;nbsp; To get at a processing instruction, you&amp;#39;ll need to do something like this:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XmlDocument xmlDoc = new XmlDocument();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlDoc.Load(@&amp;quot;C:\template.xml&amp;quot;);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;XmlProcessingInstruction ipPi = xmlDoc.SelectSingleNode(&amp;quot;processing-instruction()[local-name() = &amp;#39;mso-infoPathSolution&amp;#39;]&amp;quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as XmlProcessingInstruction;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (ipPi != null &amp;amp;&amp;amp; ipPi.Value.Contains(&amp;quot;CertFormPub&amp;quot;)&amp;nbsp; &amp;amp;&amp;amp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; !ipPi.Value.Contains(&amp;quot;Prefix-FormName&amp;quot;))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ipPi.Value = ipPi.Value.Replace(&amp;quot;CertFormPub&amp;quot;, &amp;quot;Prefix-FormName&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlDoc.Save(@&amp;quot;C:\template.xml&amp;quot;); &lt;/p&gt;&lt;p&gt;&amp;nbsp; There&amp;#39;s no easy way to get at the attributes inside a processing instruction, so you&amp;#39;re probably best off doing the string processing on the whole PI value.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Get Attribute of xsf:xDocumentClass Node in manifest.xsf</title><link>https://www.infopathdev.com:443/forums/thread/46234.aspx</link><pubDate>Wed, 26 Aug 2009 04:26:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46234</guid><dc:creator>fromonesource</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46234.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=46234</wfw:commentRss><description>&lt;p&gt;This works great, thanks Jimmy.&lt;/p&gt;&lt;p&gt;Now this is interesting... when I try the same method against template.xml in order to replace the name attribute value in&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;lt;?mso-infoPathSolution name=&amp;quot;urn:schemas-microsoft-com:office:infopath:FormName:-myXSD-2008-06-30T14-56-08&amp;quot; solutionVersion=&amp;quot;1.0.0.575&amp;quot; productVersion=&amp;quot;12.0.0&amp;quot; PIVersion=&amp;quot;1.0.0.0&amp;quot; ?&amp;gt; &lt;/p&gt;&lt;p&gt;it is not able to find the attribute. The XmlDocument class must not be recognizing these as DocumentElements and I don&amp;#39;t see any member of XmlDocument that would let me get at the name attribute in a &amp;lt;? ?&amp;gt; node. Is there a way?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Get Attribute of xsf:xDocumentClass Node in manifest.xsf</title><link>https://www.infopathdev.com:443/forums/thread/46231.aspx</link><pubDate>Wed, 26 Aug 2009 00:44:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46231</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46231.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=46231</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;This should be all you need:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XmlDocument xmlDoc = new XmlDocument();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlDoc.Load(@&amp;quot;C:\manifest.xsf&amp;quot;);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XmlAttribute nameAttr = xmlDoc.DocumentElement.Attributes[&amp;quot;name&amp;quot;];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (nameAttr != null &amp;amp;&amp;amp; nameAttr.Value.Contains(&amp;quot;FormName&amp;quot;)&amp;nbsp; &amp;amp;&amp;amp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; !nameAttr.Value.Contains(&amp;quot;Prefix-FormName&amp;quot;))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nameAttr.Value = nameAttr.Value.Replace(&amp;quot;FormName&amp;quot;, &amp;quot;Prefix-FormName&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlDoc.Save(@&amp;quot;C:\manifest.xsf&amp;quot;);&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Get Attribute of xsf:xDocumentClass Node in manifest.xsf</title><link>https://www.infopathdev.com:443/forums/thread/46230.aspx</link><pubDate>Tue, 25 Aug 2009 23:52:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46230</guid><dc:creator>fromonesource</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46230.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=46230</wfw:commentRss><description>&lt;p&gt;Below is what I have so far. I want to replace  &amp;quot;FormName&amp;quot; in the xsf:xDocumentClass name=&amp;quot;...&amp;quot; attribute with &amp;quot;Prefix-FormName&amp;quot;, write it to manifest.xsf and save it.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XmlDocument xmlDoc = new XmlDocument();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XmlTextReader xmlReader = new XmlTextReader(@&amp;quot;C:\manifest.xsf&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while (xmlReader.Read())&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (xmlReader.NodeType.Equals(XmlNodeType.Element) &amp;amp;&amp;amp; xmlReader.Name.Equals(&amp;quot;xsf:xDocumentClass&amp;quot;))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while (xmlReader.MoveToNextAttribute())&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(xmlReader.Value.Contains(&amp;quot;FormName&amp;quot;))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string urnAttribute = xmlReader.Value;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; urnAttribute.Replace(&amp;quot;FormName&amp;quot;, &amp;quot;Prefix-FormName&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;</description></item><item><title>Re: Get Attribute of xsf:xDocumentClass Node in manifest.xsf</title><link>https://www.infopathdev.com:443/forums/thread/46226.aspx</link><pubDate>Tue, 25 Aug 2009 20:43:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46226</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46226.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=46226</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Do you have any experience working with the XmlDocument/XmlNode classes?&amp;nbsp; Can you show us the code you have so far so I can fill you in on the necessary missing steps?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Get Attribute of xsf:xDocumentClass Node in manifest.xsf</title><link>https://www.infopathdev.com:443/forums/thread/46224.aspx</link><pubDate>Tue, 25 Aug 2009 20:16:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46224</guid><dc:creator>fromonesource</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46224.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=46224</wfw:commentRss><description>&lt;p&gt;Middle step seems like it should be easy but that&amp;#39;s what I&amp;#39;m having a hard time with&lt;/p&gt;&lt;p&gt;How do I change the name=&amp;quot;urn:schemas-microsoft-com:office:infopath:FormName:-myXSD-2008-06-30T14-56-08&amp;quot; attribute for the below xml node?&lt;/p&gt;&lt;p&gt;&amp;lt;xsf:xDocumentClass solutionFormatVersion=&amp;quot;2.0.0.0&amp;quot;
solutionVersion=&amp;quot;1.0.0.575&amp;quot; productVersion=&amp;quot;12.0.0&amp;quot;
requireFullTrust=&amp;quot;yes&amp;quot;
name=&amp;quot;urn:schemas-microsoft-com:office:infopath:FormName:-myXSD-2008-06-30T14-56-08&amp;quot;
xmlns:xsf=&amp;quot;http://schemas.microsoft.com/office/infopath/2003/solutionDefinition&amp;quot;
xmlns:xsf2=&amp;quot;http://schemas.microsoft.com/office/infopath/2006/solutionDefinition/extensions&amp;quot;
xmlns:msxsl=&amp;quot;urn:schemas-microsoft-com:xslt&amp;quot;
xmlns:xd=&amp;quot;http://schemas.microsoft.com/office/infopath/2003&amp;quot;
xmlns:xsi=&amp;quot;http://www.w3.org/2001/XMLSchema-instance&amp;quot;
xmlns:xdUtil=&amp;quot;http://schemas.microsoft.com/office/infopath/2003/xslt/Util&amp;quot;
xmlns:xdXDocument=&amp;quot;http://schemas.microsoft.com/office/infopath/2003/xslt/xDocument&amp;quot;
xmlns:xdMath=&amp;quot;http://schemas.microsoft.com/office/infopath/2003/xslt/Math&amp;quot;
xmlns:xdDate=&amp;quot;http://schemas.microsoft.com/office/infopath/2003/xslt/Date&amp;quot;
xmlns:xdExtension=&amp;quot;http://schemas.microsoft.com/office/infopath/2003/xslt/extension&amp;quot;
xmlns:xdEnvironment=&amp;quot;http://schemas.microsoft.com/office/infopath/2006/xslt/environment&amp;quot;
xmlns:xdUser=&amp;quot;http://schemas.microsoft.com/office/infopath/2006/xslt/User&amp;quot;
xmlns:my=&amp;quot;http://schemas.microsoft.com/office/infopath/2003/myXSD/2008-06-30T14:56:08&amp;quot;
xmlns:dfs=&amp;quot;http://schemas.microsoft.com/office/infopath/2003/dataFormSolution&amp;quot;
xmlns:xhtml=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;
xmlns:d=&amp;quot;http://schemas.microsoft.com/office/infopath/2003/ado/dataFields&amp;quot;
xmlns:tns=&amp;quot;http://rjbtech.com/&amp;quot;
xmlns:http=&amp;quot;http://schemas.xmlsoap.org/wsdl/http/&amp;quot;
xmlns:soap12=&amp;quot;http://schemas.xmlsoap.org/wsdl/soap12/&amp;quot;
xmlns:mime=&amp;quot;http://schemas.xmlsoap.org/wsdl/mime/&amp;quot;
xmlns:soapenc=&amp;quot;http://schemas.xmlsoap.org/soap/encoding/&amp;quot;
xmlns:tm=&amp;quot;http://microsoft.com/wsdl/mime/textMatching/&amp;quot;
xmlns:soap=&amp;quot;http://schemas.xmlsoap.org/wsdl/soap/&amp;quot;
xmlns:wsdl=&amp;quot;http://schemas.xmlsoap.org/wsdl/&amp;quot;&amp;gt; &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>