<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Deleting a form from sharepoint</title><link>https://www.infopathdev.com:443/forums/thread/22236.aspx</link><pubDate>Thu, 09 Aug 2007 10:12:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22236</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22236.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=22236</wfw:commentRss><description>&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;Hi,&lt;/font&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;You have to pass the complete url of which you want to delete the xml. In that above How To is about delete one xml file from SharePoint. What type of error you are getting?&lt;/font&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;First line of the code is tells that setting the file name to web service connection. And second line is creating the share point data adapter. After that deleting the above selected xml using submit method in web service.&lt;/font&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;Hope this helps you&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Deleting a form from sharepoint</title><link>https://www.infopathdev.com:443/forums/thread/22136.aspx</link><pubDate>Wed, 01 Aug 2007 20:08:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22136</guid><dc:creator>wt1024</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22136.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=22136</wfw:commentRss><description>&lt;p&gt;Hi, &lt;/p&gt;&lt;p&gt;can anyone tell me how to delete a from from sharepoint library?&lt;/p&gt;&lt;p&gt;I have searched through the site and I found&amp;nbsp;post from Agni Reddy (&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.infopathdev.com/blogs/agni/archive/2006/03/12/Delete-File-from-SharePoint.aspx"&gt;http://www.infopathdev.com/blogs/agni/archive/2006/03/12/Delete-File-from-SharePoint.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;), but I was not able to get it to work.&lt;/p&gt;&lt;p&gt;&amp;nbsp;On Agni&amp;#39;s post, I wasn&amp;#39;t able to get the following part to work.&amp;nbsp; Can anyone have an easier way to delete a form or does anyone know how to get this to work?&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Add code to call the SharePointDelete data connection:&lt;/strong&gt;&lt;/p&gt;&lt;ol start="1" style="margin-top:0px;margin-bottom:0px;"&gt;&lt;li&gt;Open the following code into the FormCode.cs:&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p style="padding-left:40px;"&gt;&lt;table class="msoUcTable" style="table-layout:fixed;width:100%;border-collapse:collapse;word-wrap:break-word;border:medium none;"&gt;&lt;tr&gt;&lt;td align="left" style="background-color:#e6e6e6;border:#e6e6e6 6pt solid;"&gt;&lt;p&gt;&lt;font color="#333399" face="Courier New" size="2"&gt;private void deleteFile(string fileName)&lt;br /&gt;{&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; thisXDocument.GetDOM(&amp;quot;UpdateListItemsConfig&amp;quot;).selectSingleNode(&amp;quot;/UpdateListItemsConfig/SharepointDelete/Batch/Method/Field[@Name = &amp;#39;FileRef&amp;#39;]&amp;quot;).text = fileName;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WebServiceAdapter2 deleteFileFromSharepoint = (WebServiceAdapter2)thisXDocument.DataAdapters[&amp;quot;SharePointDelete&amp;quot;];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; deleteFileFromSharepoint.Submit();&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;}&lt;/font&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/p&gt;&lt;ol start="2" style="margin-top:0px;margin-bottom:0px;"&gt;&lt;li&gt;Pass the complete filepath to the Method for deleting the File&lt;br /&gt;Ex: &lt;em&gt;&lt;a href="http://servername/sites/SharePointDelete/TestDelete.xml"&gt;http://serverName/sites/SharePointDelete/TestDelete.xml&lt;/a&gt;&lt;/em&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Any help would be appreciated.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;</description></item></channel></rss>