HerculesCRUE_Commons-ED-MA/src/Hercules.CommonsEDMA.OAI_PMH/OAI_PMH/Models/SGI/SGI_Base.cs
using System.Xml.Serialization;

namespace OAI_PMH.Models.SGI
{
    public class SGI_Base
    {
        public string ToXML()
        {
            using var stringwriter = new System.IO.StringWriter();
            var serializer = new XmlSerializer(GetType());
            serializer.Serialize(stringwriter, this);
            return stringwriter.ToString();
        }
    }
}
