title: Deserialize object binary to XML?
body: <p>I am having some trouble deserializing an object to XML. I am trying to deserialize something which doesn't have an empty constructor thus I need to use the BinaryFormatter? I have:</p>
  
  <ul>
  <li>A DLL which consists of a class I want to deserialize into XML.</li>
  <li>From reflecting the type I can see that it has no parameterless constructor.</li>
  <li>This class contains properties of which some do not have empty constructors either.</li>
  </ul>
  
  <p>My question is, is it possible to deserialize this class into XML? I did find a way whereby I used:</p>
  
  <ul>
  <li>BinaryFormatter</li>
  <li>Loaded the contents into a stream</li>
  <li>Used a FileStream to write its contents but ended up with rubbish</li>
  </ul>
  
  <p>Thanks in advance. I found something called FormatterServices... but don't know whether you could use this in conjunction with the XmlSerializer?</p>