C# hws2xml - thanks Myran