You can also convert the model to XML Document.
XmlDocument xmlDocument = model.ToXml("rootName");
You can avoid the root element name, it will take the class name as root name.
You can also convert the model to XML Document.
XmlDocument xmlDocument = model.ToXml("rootName");
You can avoid the root element name, it will take the class name as root name.