<?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>How to get InfoPath Form name in SP library?</title><link>https://www.infopathdev.com:443/forums/thread/21671.aspx</link><pubDate>Mon, 16 Jul 2007 10:36:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21671</guid><dc:creator>liorlankril</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21671.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=21671</wfw:commentRss><description>&lt;p&gt;I have an InfoPath form which in it&amp;#39;s code I operate searching (by field parametr) in SharePoint Forms Library (contain others InfoPath form- xml) .&lt;/p&gt;&lt;p&gt;I want to be able to open the form that was found; I must to get the fotm name. I use this code:&lt;/p&gt;&lt;p&gt;&amp;nbsp;//////////////////&lt;/p&gt;&lt;p&gt;var dataObj= XDocument.DataObjects(&amp;quot;StudentsForms&amp;quot;);&lt;/p&gt;&lt;p&gt;var dataDom=dataObj.DOM;&lt;/p&gt;&lt;p&gt;dataDom.setProperty (&amp;quot;SelectionNamespaces&amp;quot;,&amp;#39;xmlns:dfs=&amp;quot;http://schemas.microsoft.com/office/infopath/2003/dataFormSolution&amp;quot; xmlns:dsf=&amp;quot;http://schemas.microsoft.com/office/infopath/2003/dataFormSolution&amp;quot; &amp;#39;);&lt;/p&gt;&lt;p&gt;&amp;nbsp;dataObj.Query();&amp;nbsp;&lt;/p&gt;&lt;p&gt;var selectedNode = dataDom.selectSingleNode(&amp;quot;/dfs:myFields/dfs:dataFields/dsf:Students [@IDnumber=&amp;#39;&amp;quot; + strId + &amp;quot;&amp;#39;]&amp;quot;);&lt;/p&gt;&lt;p&gt;var fname=selectedNode.attributes.getNamedItem(&amp;quot;FirstName&amp;quot;).text;&lt;/p&gt;&lt;p&gt;&amp;nbsp;////////////////&lt;/p&gt;&lt;p&gt;As you can see, In the last row I get the &amp;quot;FirstName&amp;quot; value which is column in the SharePoint Forms&amp;nbsp;Library, &lt;/p&gt;&lt;p&gt;How can i get the name of the InfoPath form file (Which is also culomn in the list) ?????&lt;/p&gt;</description></item></channel></rss>