protected internal String ToXMLFragment()
{
StringBuilder xml = new StringBuilder();
if (IsSetUserDefinedLocation()) {
xml.Append("<UserDefinedLocation>");
xml.Append(EscapeXML(this.UserDefinedLocation));
xml.Append("</UserDefinedLocation>");
}
if (IsSetCity()) {
xml.Append("<City>");
xml.Append(EscapeXML(this.City));
xml.Append("</City>");
}
if (IsSetState()) {
xml.Append("<State>");
xml.Append(EscapeXML(this.State));
xml.Append("</State>");
}
if (IsSetCountry()) {
xml.Append("<Country>");
xml.Append(EscapeXML(this.Country));
xml.Append("</Country>");
}
return xml.ToString();
}