title: How to create in memory XML document and get string out of it
body: <p>I would like to create the XML string with special characters handling. However it turned out to be too complicated and causing issues by generating wrong XML. 
  Now i was thinking to build the string using some object from System.xml and then stringify() or get string from it. This will i guess help me from special character cases.</p>
  
  <pre><code>//Psudo code
  xmlDoc doc = new XMLDoc();
  Element ele= new Element("xyz");
  ele.value(Oob.property)
  doc.appendNode(ele);
  ...
  
  doc.getXMLString();
  </code></pre>
  
  <p>Can some one please let me know how to do this in C# .NET2.0+ .</p>