<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: XDocument is not declared</title><link>https://www.infopathdev.com:443/forums/thread/15145.aspx</link><pubDate>Fri, 02 Mar 2007 06:48:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15145</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15145.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15145</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;You are tried to set the value to ‘Value#%92 property. Rather than you have to try to set the value to ‘text#%92 property as below code:&lt;br /&gt;&lt;br /&gt;XDocument.DOM.selectSingleNode("/my:myFields/my:SectionSelector").text = "Section 1";&lt;br /&gt;</description></item><item><title>XDocument is not declared</title><link>https://www.infopathdev.com:443/forums/thread/13072.aspx</link><pubDate>Thu, 01 Mar 2007 13:40:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13072</guid><dc:creator>G0ggy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13072.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13072</wfw:commentRss><description>Hi all,&lt;br /&gt;&lt;br /&gt;I'm trying to set a fields value on the click of a button, but before I even get that far, Intellisense is telling me that my reference to XDocument is not declared. I am using this as it is in many examples of what I am trying to do, here is some code:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;XDocument.DOM.selectSingleNode("/my:myFields/my:SectionSelector").Value = "Section 1"&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Can you help?&lt;br /&gt;&lt;br /&gt;Thanks.</description></item></channel></rss>