<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.silverlight.net/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>Installation and Setup</title><link>http://forums.silverlight.net/forums/13.aspx</link><description>All about installing and getting Silverlight running on your system</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Re: Error - object reference not set to an instance of an object</title><link>http://forums.silverlight.net/forums/thread/234759.aspx</link><pubDate>Wed, 17 Jun 2009 23:49:42 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:234759</guid><dc:creator>Brennca3344</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/234759.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=13&amp;PostID=234759</wfw:commentRss><description>&lt;p&gt;Perhaps try setting a properly typed variable = x.Attribute(&amp;quot;ows_BrandName&amp;quot;), and then try &amp;quot;select variable.Value&amp;quot;, something like this (I&amp;#39;m not sure what type x is):&lt;/p&gt;
&lt;p&gt;var result = x.Attribute(&amp;quot;ows_BrandName&amp;quot;)&lt;/p&gt;
&lt;p&gt;select result.Value;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Error - object reference not set to an instance of an object</title><link>http://forums.silverlight.net/forums/thread/233748.aspx</link><pubDate>Tue, 16 Jun 2009 04:37:02 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:233748</guid><dc:creator>bhat555</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/233748.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=13&amp;PostID=233748</wfw:commentRss><description>&lt;p&gt;Hi &lt;/p&gt;
&lt;p&gt;I am getting error &amp;#39;object reference not set to an instance of an object&amp;#39; when using&amp;nbsp;following&amp;nbsp;code to retrieve data from SharePoint list&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Xnamespace ns = &amp;quot;#RowsetSchema&amp;quot;;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;var query = from x in e.Result.Descendants()&lt;/p&gt;
&lt;p&gt;where x.Name == ns + &amp;quot;row&amp;quot;&lt;/p&gt;
&lt;p&gt;select x.Attribute(&amp;quot;ows_BrandName&amp;quot;).Value;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;but when I am using following code i.e without &amp;#39;Value&amp;#39; it works &amp;amp; display ows_BrandName = &amp;#39;Pepsodent&amp;#39;&lt;/p&gt;
&lt;p&gt;Xnamespace ns = &amp;quot;#RowsetSchema&amp;quot;;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;var query = from x in e.Result.Descendants()&lt;/p&gt;
&lt;p&gt;where x.Name == ns + &amp;quot;row&amp;quot;&lt;/p&gt;
&lt;p&gt;select x.Attribute(&amp;quot;ows_BrandName&amp;quot;);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can someone tell me what&amp;#39;s wronge with the first code block? How to get ony value&amp;nbsp; part ?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item></channel></rss>