<?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: XDocument reference in vbscript</title><link>https://www.infopathdev.com:443/forums/thread/61053.aspx</link><pubDate>Wed, 03 Nov 2010 14:15:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61053</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61053.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=61053</wfw:commentRss><description>&lt;p&gt;XDocument and XDocument.DOM are used in VBScript and JScript.&amp;nbsp; In the 2003 objectmodel for VB.NET and C#, it would be &lt;strong&gt;thisXDocument&lt;/strong&gt; and &lt;strong&gt;thisXDocument&lt;/strong&gt;.DOM.&lt;/p&gt;</description></item><item><title>Re: XDocument reference in vbscript</title><link>https://www.infopathdev.com:443/forums/thread/61044.aspx</link><pubDate>Wed, 03 Nov 2010 12:06:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61044</guid><dc:creator>Caeanis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61044.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=61044</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;After doing a little digging, I found that XDocument is not used in Microsoft.Office.InfoPath in vb.&amp;nbsp; Just C#, and Jscript use it in that namespace. It is used in Microsoft.Office.Interop.InfoPath for vb however. &amp;nbsp; Thank you for the quick response! &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: XDocument reference in vbscript</title><link>https://www.infopathdev.com:443/forums/thread/61042.aspx</link><pubDate>Wed, 03 Nov 2010 09:30:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61042</guid><dc:creator>R&amp;#233;mi MATAYRON</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61042.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=61042</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I use C# and it works fine. I think it is the same way for VB.Net.&lt;/p&gt;
&lt;p&gt;Take careful, VB.Net is different of VBScript.... There is no way to use VBScript in InfoPath...&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In my memory XDocument.DOM is used in 2003 model object. The 2007 model object have changed.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For selected nodes, i work with XPathNavigator. And I use the following code:&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;/font&gt;&lt;font color="#000000" size="2"&gt; nav = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;.MainDataSource.CreateNavigator();&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&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;&amp;nbsp;test = nav.SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;//my:test&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager);&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;This code is in C#. I think it is approximatively the same thing in VB.Net.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Hope this help.&lt;/p&gt;&lt;/font&gt;</description></item><item><title>XDocument reference in vbscript</title><link>https://www.infopathdev.com:443/forums/thread/61025.aspx</link><pubDate>Tue, 02 Nov 2010 20:27:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61025</guid><dc:creator>Caeanis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61025.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=61025</wfw:commentRss><description>&lt;p&gt;I am running Infopath 2007 in conjuction with Sharepoint 2007.&amp;nbsp; I have seen numerous references to XDocument and XDocument.DOM both here and on the net in various script samples and forums, how ever I find no reference for this in the object browser.&amp;nbsp; I am trying to follow code I found to copy a set of nodes from one data source to another.&amp;nbsp; Is there a special reference I need to add to my FormCode to be able to use this object?&amp;nbsp; It doesn&amp;#39;t seem likely that it would only be relevent in an older version but I&amp;#39;m at a loss for why it isn&amp;#39;t recognized in my project.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thank you! &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>