<?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>SharePoint Integration</title><link>https://www.infopathdev.com:443/forums/46.aspx</link><description> For questions concerning issues in the integration of SharePoint and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Name 'thisXDocument' is not declared</title><link>https://www.infopathdev.com:443/forums/thread/30401.aspx</link><pubDate>Mon, 14 Jul 2008 12:53:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30401</guid><dc:creator>Moe.Vafaei</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30401.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=30401</wfw:commentRss><description>&lt;p&gt;Thank you Anuma,&lt;/p&gt;
&lt;p&gt;The second link was a great help. Now, I&amp;#39;ve a line of code in C# that sets a field in XML file to a value, but was not able to get it working in my VB .Net code. Could you please let me know the VB .Net equivalent of the code? (i.e: What is the equvalent of [@Name=&amp;#39;FileRef&amp;#39;] in VB?)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Greatly appreciate it. &lt;/p&gt;
&lt;p&gt;Moe&lt;/p&gt;
&lt;p&gt;C#: &lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;thisXDocument.GetDOM(&amp;quot;UpdateListItemsConfig&amp;quot;).selectSingleNode(&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;/UpdateListItemsConfig/SharepointDelete/Batch/Method/Field[@Name = &amp;#39;FileRef&amp;#39;]&amp;quot;).text=filename;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#000000"&gt;VB .Net: &lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;Me.CreateNavigator.SelectSingleNode(&lt;a&gt;/UpdateListItemsConfig/SharepointDelete/Batch/Method/Field/@Name????).SetValue(filename&lt;/a&gt;)&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: Name 'thisXDocument' is not declared</title><link>https://www.infopathdev.com:443/forums/thread/30389.aspx</link><pubDate>Mon, 14 Jul 2008 06:16:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30389</guid><dc:creator>Anuma</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30389.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=30389</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you please verify the following link.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.eggheadcafe.com/software/aspnet/30549102/thisxdocument-is-not-decl.aspx"&gt;http://www.eggheadcafe.com/software/aspnet/30549102/thisxdocument-is-not-decl.aspx&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.infopathdev.com/forums/p/7356/26872.aspx#26872"&gt;http://www.infopathdev.com/forums/p/7356/26872.aspx#26872&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Name 'thisXDocument' is not declared</title><link>https://www.infopathdev.com:443/forums/thread/30361.aspx</link><pubDate>Fri, 11 Jul 2008 19:38:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30361</guid><dc:creator>Moe.Vafaei</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30361.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=30361</wfw:commentRss><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I&amp;#39;m using VSTO (not VisualStudio full version) and part of the&amp;nbsp;code is to delete a file from sharepoint &lt;br /&gt;library. I found the following code sample for VB .Net, but I&amp;#39;m getting error that &amp;#39;thisXDocument&amp;#39; is not declared.&lt;/p&gt;
&lt;p&gt;What should I be importing into my code not to get the error?&lt;br /&gt;&lt;br /&gt;Regards&lt;br /&gt;&lt;br /&gt;thisXDocument.GetDOM(&amp;quot;UpdateListItemsConfig&amp;quot;).selectSingleNode(&amp;quot;/UpdateListItemsConfig/SharepointDelete/Batch/Method/Field[@Name &lt;br /&gt;= &amp;#39;FileRef&amp;#39;]&amp;quot;).text = fileName&lt;br /&gt;&lt;br /&gt;Dim deleteFileFromSharepoint As WebServiceAdapter2 = &lt;br /&gt;CType(thisXDocument.DataAdapters(&amp;quot;SharePointDelete&amp;quot;), WebServiceAdapter2)&lt;br /&gt;&lt;br /&gt;deleteFileFromSharepoInteger.Submit()&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>