protected internal String ToXMLFragment()
{
StringBuilder xml = new StringBuilder();
if (IsSetCity()) {
xml.Append("<City>");
xml.Append(EscapeXML(this.City));
xml.Append("</City>");
}
if (IsSetEmail()) {
xml.Append("<Email>");
xml.Append(EscapeXML(this.Email));
xml.Append("</Email>");
}
if (IsSetFirstName()) {
xml.Append("<FirstName>");
xml.Append(EscapeXML(this.FirstName));
xml.Append("</FirstName>");
}
if (IsSetLastName()) {
xml.Append("<LastName>");
xml.Append(EscapeXML(this.LastName));
xml.Append("</LastName>");
}
if (IsSetListPage()) {
xml.Append("<ListPage>");
xml.Append(this.ListPage);
xml.Append("</ListPage>");
}
if (IsSetListType()) {
xml.Append("<ListType>");
xml.Append(this.ListType);
xml.Append("</ListType>");
}
if (IsSetName()) {
xml.Append("<Name>");
xml.Append(EscapeXML(this.Name));
xml.Append("</Name>");
}
List<String> responseGroupList = this.ResponseGroup;
foreach (String responseGroup in responseGroupList) {
xml.Append("<ResponseGroup>");
xml.Append(responseGroup);
xml.Append("</ResponseGroup>");
}
if (IsSetState()) {
xml.Append("<State>");
xml.Append(EscapeXML(this.State));
xml.Append("</State>");
}
return xml.ToString();
}