Friday, November 30, 2007 - Posts

LINQ (to XML) and Dictionaries

Someone asked me today about how to go from a piece of XML which contained key/value pairs to a Dictionary<K,V>. This was the best I could come up with; Dim xml = <items> <item key="one" value="A"/> Read More

LINQ to XML and IXPathNavigable

Something I've been pondering. Living over in System.Xml.XPath is an extension method to XNode (from LINQ to XML) called CreateNavigator. So, given something like an XElement;XElement x = new XElement("foo"); I can go ahead and get an XPathNavigator Read More

Filed Under: , ,