Hi,
I'm wandering if I can .NET XML Serialization features in Eiffel?
In C# I would write something like this:
using System.xml.serialization;
public class Employee {
private string firstName = "";
private string secondName = "";
[XmlAttribute]
public FirstName {
get { return firstName; }
set { firstName = value; }
}
[XmlAttribute]
public SecondName {
get { return secondName; }
set { secondName = value; }
}
}
And the class would serialize nicely to something like this:
<Employee FirstName="" SecondName="" />
How would I go about that in Eiffel? How does one use custom
attributes in Eiffel? How should my classes features look if I want
them to be properly serializable and deserializable by XmlSerializer?