Tag Archives: XML

Deserialize XML array to string[] and how to allow JSON to be deserialized into the same POCO class

How do you deserialize the classic XML array to an string[] type? The XML representation of an array is a list of elements: And the MyArray would normally be deserialized to an annoying class: The solution is to use the … Continue reading

Posted in .net, c#, General .NET | Tagged , , , , | Leave a comment

XElement get default values using extension methods

I often work with dynamic XML documents which might or might not contain the element, field or attribute that I am looking for. The Standard .NET XElement class is pretty strict (as it should be) and returns a null reference … Continue reading

Posted in .net, c#, General .NET | Tagged , , , , | 1 Comment

Creating a tree like left menu in Sitecore using UserControls and C#

This post is a follow-up on the article on how to create a tree like left menu in Sitecore using XSLT. This time I will not use XSLT to create my left menu, but instead I will use C# and … Continue reading

Posted in c#, Sitecore 6 | Tagged , , , , , , , , , , | 5 Comments