protected internal String ToXMLFragment()
{
StringBuilder xml = new StringBuilder();
if (IsSetDistinctTags()) {
xml.Append("<DistinctTags>");
xml.Append(EscapeXML(this.DistinctTags));
xml.Append("</DistinctTags>");
}
if (IsSetDistinctItems()) {
xml.Append("<DistinctItems>");
xml.Append(EscapeXML(this.DistinctItems));
xml.Append("</DistinctItems>");
}
if (IsSetDistinctUsers()) {
xml.Append("<DistinctUsers>");
xml.Append(EscapeXML(this.DistinctUsers));
xml.Append("</DistinctUsers>");
}
if (IsSetTotalUsages()) {
xml.Append("<TotalUsages>");
xml.Append(EscapeXML(this.TotalUsages));
xml.Append("</TotalUsages>");
}
if (IsSetFirstTagging()) {
Tagging firstTagging = this.FirstTagging;
xml.Append("<FirstTagging>");
xml.Append(firstTagging.ToXMLFragment());
xml.Append("</FirstTagging>");
}
if (IsSetLastTagging()) {
Tagging lastTagging = this.LastTagging;
xml.Append("<LastTagging>");
xml.Append(lastTagging.ToXMLFragment());
xml.Append("</LastTagging>");
}
List<Tag> tagList = this.Tag;
foreach (Tag tag in tagList) {
xml.Append("<Tag>");
xml.Append(tag.ToXMLFragment());
xml.Append("</Tag>");
}
return xml.ToString();
}