31 using OpenSim.Framework;
33 namespace OpenSim.Framework.Serialization.External
43 public const int MAJOR_VERSION = 0;
44 public const int MINOR_VERSION = 1;
46 public static string Serialize(UUID userID,
string firstName,
string lastName)
48 StringWriter sw =
new StringWriter();
49 XmlTextWriter xtw =
new XmlTextWriter(sw);
50 xtw.Formatting = Formatting.Indented;
51 xtw.WriteStartDocument();
53 xtw.WriteStartElement(
"user_profile");
54 xtw.WriteAttributeString(
"major_version", MAJOR_VERSION.ToString());
55 xtw.WriteAttributeString(
"minor_version", MINOR_VERSION.ToString());
57 xtw.WriteElementString(
"name", firstName +
" " + lastName);
58 xtw.WriteElementString(
"id", userID.ToString());
59 xtw.WriteElementString(
"about",
"");
65 xtw.WriteEndElement();
Serialize and deserialize user profiles as an external format.
static string Serialize(UUID userID, string firstName, string lastName)