<?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 object</title><link>https://www.infopathdev.com:443/forums/thread/20903.aspx</link><pubDate>Tue, 19 Jun 2007 02:06:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20903</guid><dc:creator>stevanus.hk</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20903.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=20903</wfw:commentRss><description>i use infopath 2007, hmm i think you are right, thanks for your info</description></item><item><title>Re: xdocument object</title><link>https://www.infopathdev.com:443/forums/thread/20880.aspx</link><pubDate>Mon, 18 Jun 2007 12:13:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20880</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20880.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=20880</wfw:commentRss><description>Ah true, which version of InfoPath do you use ? If it is 2007 I think you have to use XPathNavigator instead of XDocument if I remember right.</description></item><item><title>Re: xdocument object</title><link>https://www.infopathdev.com:443/forums/thread/20878.aspx</link><pubDate>Mon, 18 Jun 2007 09:25:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20878</guid><dc:creator>romaik</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20878.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=20878</wfw:commentRss><description>&lt;p&gt;I think (I might be wrong) that XDocument is in InfoPath 2003&lt;/p&gt;&lt;p&gt;If your a using InfoPath 2007, please refer to this object model =&amp;gt; http://download.microsoft.com/download/0/9/c/09cda3f2-6d3d-4082-aec5-9a62b7679ecf/InfoPathObjectModelMap.pdf&lt;/p&gt;&lt;p&gt;So I guess you should use XmlFrom instead of XDocument&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Regards&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: xdocument object</title><link>https://www.infopathdev.com:443/forums/thread/20876.aspx</link><pubDate>Mon, 18 Jun 2007 09:11:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20876</guid><dc:creator>stevanus.hk</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20876.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=20876</wfw:commentRss><description>&lt;p&gt;but i can&amp;#39;t use the xdocument object&lt;/p&gt;&lt;p&gt;var secondary = &lt;u&gt;&lt;strong&gt;XDocument&lt;/strong&gt;&lt;/u&gt;.GetDOM(&amp;quot;Name of your secondary datasource&amp;quot;); and also don&amp;#39;t forget to set the namespace&lt;/p&gt;&lt;p&gt;&amp;nbsp;i search the xdocument object in the object browser but i can&amp;#39;t find it, did i miss something?&lt;/p&gt;</description></item><item><title>Re: xdocument object</title><link>https://www.infopathdev.com:443/forums/thread/20873.aspx</link><pubDate>Mon, 18 Jun 2007 07:19:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20873</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20873.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=20873</wfw:commentRss><description>&lt;p&gt;You first need to get the DOM of your secondary datasource. You can use&lt;/p&gt;&lt;p&gt;var secondary = XDocument.GetDOM(&amp;quot;Name of your secondary datasource&amp;quot;); and also don&amp;#39;t forget to set the namespace:&lt;/p&gt;&lt;p&gt;secondary.setProperty(&amp;quot;SelectionNamespace&amp;quot;, &amp;quot;your namespace string&amp;quot;). now you should be able to use:&lt;/p&gt;&lt;p&gt;secondary.DOM.selectSingleNode(&amp;quot;.........&amp;quot;);&lt;/p&gt;&lt;p&gt;Does this help ?&lt;/p&gt;</description></item><item><title>xdocument object</title><link>https://www.infopathdev.com:443/forums/thread/20872.aspx</link><pubDate>Mon, 18 Jun 2007 06:19:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20872</guid><dc:creator>stevanus.hk</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20872.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=20872</wfw:commentRss><description>&lt;p&gt;Hello, im sorry if my english is so bad. I need to use my secondary datasource in my code, but i can&amp;#39;t find xdocument object even i search in object browser. can someone help me? or any one know how to use secondary datasource&amp;nbsp; without use xdocument object? &lt;/p&gt;</description></item></channel></rss>