<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" > <channel><title>Comments on: Using XmlReader and object Deserialization</title> <atom:link href="http://quickduck.com/blog/2008/02/15/using-xmlreader-to-go-from-sql-result-set-to-a-list-of-objects/feed/" rel="self" type="application/rss+xml" /><link>http://quickduck.com/blog/2008/02/15/using-xmlreader-to-go-from-sql-result-set-to-a-list-of-objects/</link> <description>Straight from the mind of geniuseseses....</description> <lastBuildDate>Thu, 26 Jan 2012 20:48:40 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Matthew</title><link>http://quickduck.com/blog/2008/02/15/using-xmlreader-to-go-from-sql-result-set-to-a-list-of-objects/comment-page-1/#comment-2391</link> <dc:creator>Matthew</dc:creator> <pubDate>Sat, 21 Feb 2009 13:01:00 +0000</pubDate> <guid isPermaLink="false">http://quickduck.com/blog/2008/02/15/using-xmlreader-to-go-from-sql-result-set-to-a-list-of-objects/#comment-2391</guid> <description>Fantastic! All working perfectly.Thanks for the speedy response!</description> <content:encoded><![CDATA[<p>Fantastic! All working perfectly.</p><p>Thanks for the speedy response!</p> ]]></content:encoded> </item> <item><title>By: Gerrod</title><link>http://quickduck.com/blog/2008/02/15/using-xmlreader-to-go-from-sql-result-set-to-a-list-of-objects/comment-page-1/#comment-2389</link> <dc:creator>Gerrod</dc:creator> <pubDate>Sat, 21 Feb 2009 09:47:39 +0000</pubDate> <guid isPermaLink="false">http://quickduck.com/blog/2008/02/15/using-xmlreader-to-go-from-sql-result-set-to-a-list-of-objects/#comment-2389</guid> <description>Hi Matthew -Try using System.Collections.IDictionary instead of System.Collections.&lt;em&gt;Generc&lt;/em&gt;.IDictionary.Hope that helps!</description> <content:encoded><![CDATA[<p>Hi Matthew -</p><p>Try using System.Collections.IDictionary instead of System.Collections.<em>Generc</em>.IDictionary.</p><p>Hope that helps!</p> ]]></content:encoded> </item> <item><title>By: Matthew</title><link>http://quickduck.com/blog/2008/02/15/using-xmlreader-to-go-from-sql-result-set-to-a-list-of-objects/comment-page-1/#comment-2387</link> <dc:creator>Matthew</dc:creator> <pubDate>Sat, 21 Feb 2009 02:30:31 +0000</pubDate> <guid isPermaLink="false">http://quickduck.com/blog/2008/02/15/using-xmlreader-to-go-from-sql-result-set-to-a-list-of-objects/#comment-2387</guid> <description>I&#039;ve tried any number of workarounds, and I cannot get the following line to compile:private static readonly IDictionary xmlSerializers = new Dictionary();It is insisting that Dictionary() requires two type parameters TKey and TValue and I cannot work out how to make this generic (e.g. Dictionary().What am I doing wrong?</description> <content:encoded><![CDATA[<p>I&#8217;ve tried any number of workarounds, and I cannot get the following line to compile:</p><p>private static readonly IDictionary xmlSerializers = new Dictionary();</p><p>It is insisting that Dictionary() requires two type parameters TKey and TValue and I cannot work out how to make this generic (e.g. Dictionary().</p><p>What am I doing wrong?</p> ]]></content:encoded> </item> <item><title>By: Adam Short</title><link>http://quickduck.com/blog/2008/02/15/using-xmlreader-to-go-from-sql-result-set-to-a-list-of-objects/comment-page-1/#comment-1000</link> <dc:creator>Adam Short</dc:creator> <pubDate>Wed, 16 Jul 2008 17:05:56 +0000</pubDate> <guid isPermaLink="false">http://quickduck.com/blog/2008/02/15/using-xmlreader-to-go-from-sql-result-set-to-a-list-of-objects/#comment-1000</guid> <description>It does indeed, cheers!</description> <content:encoded><![CDATA[<p>It does indeed, cheers!</p> ]]></content:encoded> </item> <item><title>By: Gerrod</title><link>http://quickduck.com/blog/2008/02/15/using-xmlreader-to-go-from-sql-result-set-to-a-list-of-objects/comment-page-1/#comment-999</link> <dc:creator>Gerrod</dc:creator> <pubDate>Wed, 16 Jul 2008 13:27:24 +0000</pubDate> <guid isPermaLink="false">http://quickduck.com/blog/2008/02/15/using-xmlreader-to-go-from-sql-result-set-to-a-list-of-objects/#comment-999</guid> <description>Adam - yes, you could indeed just read/write to/from an ordinary XML file; it doesn&#039;t have to be going to/from the database. The serialization methods act on an XmlReader/XmlWriter which can be constructed around any stream you like.The first thing you&#039;ll probably want to do is make your code persist an object so you can see what the resulting XML looks like. This will give you a target to aim for when translating your &quot;public files&quot; into XML.Hope that helps!</description> <content:encoded><![CDATA[<p>Adam &#8211; yes, you could indeed just read/write to/from an ordinary XML file; it doesn&#8217;t have to be going to/from the database. The serialization methods act on an XmlReader/XmlWriter which can be constructed around any stream you like.</p><p>The first thing you&#8217;ll probably want to do is make your code persist an object so you can see what the resulting XML looks like. This will give you a target to aim for when translating your &#8220;public files&#8221; into XML.</p><p>Hope that helps!</p> ]]></content:encoded> </item> <item><title>By: Adam Short</title><link>http://quickduck.com/blog/2008/02/15/using-xmlreader-to-go-from-sql-result-set-to-a-list-of-objects/comment-page-1/#comment-998</link> <dc:creator>Adam Short</dc:creator> <pubDate>Wed, 16 Jul 2008 13:23:26 +0000</pubDate> <guid isPermaLink="false">http://quickduck.com/blog/2008/02/15/using-xmlreader-to-go-from-sql-result-set-to-a-list-of-objects/#comment-998</guid> <description>Just found this page while looking for ways to elegantly deserialize xml back into objects. I just wanted to check, there&#039;s no real reliance on SQL Server here, is there? If I wanted to, I could just as easily just write and read ordinary xml files, right? What I want to do is take a text file in a publicly available format, translate it into xml and use the xml to build objects. Assuming I can handle the first part (which should be relatively trivial), this method should deal with the rest, right?</description> <content:encoded><![CDATA[<p>Just found this page while looking for ways to elegantly deserialize xml back into objects. I just wanted to check, there&#8217;s no real reliance on SQL Server here, is there? If I wanted to, I could just as easily just write and read ordinary xml files, right? What I want to do is take a text file in a publicly available format, translate it into xml and use the xml to build objects. Assuming I can handle the first part (which should be relatively trivial), this method should deal with the rest, right?</p> ]]></content:encoded> </item> <item><title>By: Quickduck</title><link>http://quickduck.com/blog/2008/02/15/using-xmlreader-to-go-from-sql-result-set-to-a-list-of-objects/comment-page-1/#comment-547</link> <dc:creator>Quickduck</dc:creator> <pubDate>Mon, 18 Feb 2008 11:56:09 +0000</pubDate> <guid isPermaLink="false">http://quickduck.com/blog/2008/02/15/using-xmlreader-to-go-from-sql-result-set-to-a-list-of-objects/#comment-547</guid> <description>[...] on from the article - Using XmlReader and object Deserialization - which showed how to pull sql query result sets into object instances using the XmlReader and [...]</description> <content:encoded><![CDATA[<p>[...] on from the article &#8211; Using XmlReader and object Deserialization &#8211; which showed how to pull sql query result sets into object instances using the XmlReader and [...]</p> ]]></content:encoded> </item> <item><title>By: Ben</title><link>http://quickduck.com/blog/2008/02/15/using-xmlreader-to-go-from-sql-result-set-to-a-list-of-objects/comment-page-1/#comment-544</link> <dc:creator>Ben</dc:creator> <pubDate>Sat, 16 Feb 2008 11:54:37 +0000</pubDate> <guid isPermaLink="false">http://quickduck.com/blog/2008/02/15/using-xmlreader-to-go-from-sql-result-set-to-a-list-of-objects/#comment-544</guid> <description>I can. There are many ways, however I get the feeling you&#039;d like to do it using the entity and xml serialization. That isn&#039;t so easy!Let me think about it!</description> <content:encoded><![CDATA[<p>I can. There are many ways, however I get the feeling you&#8217;d like to do it using the entity and xml serialization. That isn&#8217;t so easy!</p><p>Let me think about it!</p> ]]></content:encoded> </item> <item><title>By: Andrew</title><link>http://quickduck.com/blog/2008/02/15/using-xmlreader-to-go-from-sql-result-set-to-a-list-of-objects/comment-page-1/#comment-543</link> <dc:creator>Andrew</dc:creator> <pubDate>Fri, 15 Feb 2008 20:17:42 +0000</pubDate> <guid isPermaLink="false">http://quickduck.com/blog/2008/02/15/using-xmlreader-to-go-from-sql-result-set-to-a-list-of-objects/#comment-543</guid> <description>Nice writeup, but can you show me an example of how you persist new and updated channels back to the db?</description> <content:encoded><![CDATA[<p>Nice writeup, but can you show me an example of how you persist new and updated channels back to the db?</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced

Served from: quickduck.com @ 2012-02-08 15:50:01 -->
