<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/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>Breaking Changes in the Open XML SDK v2 April 2009 CTP</title><link>http://blogs.msdn.com/brian_jones/archive/2009/05/19/breaking-changes-in-the-open-xml-sdk-v2-april-2009-ctp.aspx</link><description>One of the big changes we made in the Open XML SDK v2 April 2009 CTP was improving the Low Level DOM component to include functionality related to Office 2007 SP2. With this improvement came a difference in how some elements were interpreted as a 1 st</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Breaking Changes in the Open XML SDK v2 April 2009 CTP | ASP NET Hosting</title><link>http://blogs.msdn.com/brian_jones/archive/2009/05/19/breaking-changes-in-the-open-xml-sdk-v2-april-2009-ctp.aspx#9628619</link><pubDate>Tue, 19 May 2009 19:56:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9628619</guid><dc:creator>Breaking Changes in the Open XML SDK v2 April 2009 CTP | ASP NET Hosting</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://asp-net-hosting.simplynetdev.com/breaking-changes-in-the-open-xml-sdk-v2-april-2009-ctp/"&gt;http://asp-net-hosting.simplynetdev.com/breaking-changes-in-the-open-xml-sdk-v2-april-2009-ctp/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Breaking Changes in the Open XML SDK v2 April 2009 CTP</title><link>http://blogs.msdn.com/brian_jones/archive/2009/05/19/breaking-changes-in-the-open-xml-sdk-v2-april-2009-ctp.aspx#9640701</link><pubDate>Mon, 25 May 2009 20:46:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9640701</guid><dc:creator>asklein</dc:creator><description>&lt;p&gt;Brian,&lt;/p&gt;
&lt;p&gt;I am struggling to find a solution to an issue that I am having that is relevant to your blogs. &amp;nbsp;I am trying to to get a cells background color value. &amp;nbsp;This is not at all straight forward and a sample code would go a long way. &amp;nbsp;I don't understand how to access this information? &amp;nbsp;Is this embedded in the sytles.xml and somehow this has a per-cell relation to the cell of interest? &amp;nbsp;Your expertise on shedding some light on this issue would be so great.&lt;/p&gt;
&lt;p&gt;Many thanks,&lt;/p&gt;
&lt;p&gt;Adam&lt;/p&gt;
</description></item><item><title>re: Breaking Changes in the Open XML SDK v2 April 2009 CTP</title><link>http://blogs.msdn.com/brian_jones/archive/2009/05/19/breaking-changes-in-the-open-xml-sdk-v2-april-2009-ctp.aspx#9641928</link><pubDate>Tue, 26 May 2009 21:52:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9641928</guid><dc:creator>Zeyad Rajabi</dc:creator><description>&lt;p&gt;Adam,&lt;/p&gt;
&lt;p&gt;Are you interested in figuring out the cell background color for Excel or Word files? &lt;/p&gt;
</description></item><item><title>re: Breaking Changes in the Open XML SDK v2 April 2009 CTP</title><link>http://blogs.msdn.com/brian_jones/archive/2009/05/19/breaking-changes-in-the-open-xml-sdk-v2-april-2009-ctp.aspx#9644344</link><pubDate>Wed, 27 May 2009 15:09:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9644344</guid><dc:creator>Angel Rodriguez</dc:creator><description>&lt;p&gt;Fine Thanks,&lt;/p&gt;
&lt;p&gt;But a get NullPointerException with,&lt;/p&gt;
&lt;p&gt;SdtBlock sdt = mainPart.Document.Descendants&amp;lt;SdtBlock&amp;gt;() &lt;/p&gt;
&lt;p&gt;.Where(s =&amp;gt; &lt;/p&gt;
&lt;p&gt;s.GetFirstChild&amp;lt;SdtProperties&amp;gt;().GetFirstChild&amp;lt;Alias&amp;gt;().Val.Value &lt;/p&gt;
&lt;p&gt;.Equals(sdtName)).First(); &lt;/p&gt;
&lt;p&gt;I maked my self method&lt;/p&gt;
&lt;p&gt;private static SdtBlock GetSdtBlock(OpenXmlElement row, string tagName) {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;IEnumerable&amp;lt;SdtBlock&amp;gt; sdtBlocks = row.Descendants&amp;lt;SdtBlock&amp;gt;();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;foreach (SdtBlock sdtBlock in sdtBlocks) {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;IEnumerable&amp;lt;SdtProperties&amp;gt; sdtProperties = sdtBlock.Descendants&amp;lt;SdtProperties&amp;gt;();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;foreach (SdtProperties sdtProperty in sdtProperties) {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;IEnumerable&amp;lt;Tag&amp;gt; tags = sdtProperty.Descendants&amp;lt;Tag&amp;gt;();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;foreach (Tag tag in tags) {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (tag.Val.Value == tagName) {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return sdtBlock;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;return null;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
</description></item><item><title>re: Breaking Changes in the Open XML SDK v2 April 2009 CTP</title><link>http://blogs.msdn.com/brian_jones/archive/2009/05/19/breaking-changes-in-the-open-xml-sdk-v2-april-2009-ctp.aspx#9645026</link><pubDate>Thu, 28 May 2009 00:58:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9645026</guid><dc:creator>Zeyad Rajabi</dc:creator><description>&lt;p&gt;As you noted in your code sample, you get the null exception if you have a content control that doesn't have the specified child element. You can workaround this issue by checking to see if the child element is null. If not, then you can check it's children. &lt;/p&gt;
</description></item></channel></rss>