Amazon.ECS.Model.BrowseNode.ToXMLFragment C# (CSharp) Метод

ToXMLFragment() защищенный Метод

XML fragment representation of this object
Name for outer tag expected to be set by calling method. This fragment returns inner properties representation only
protected ToXMLFragment ( ) : String
Результат String
        protected internal String ToXMLFragment()
        {
            StringBuilder xml = new StringBuilder();
            if (IsSetBrowseNodeId()) {
                xml.Append("<BrowseNodeId>");
                xml.Append(EscapeXML(this.BrowseNodeId));
                xml.Append("</BrowseNodeId>");
            }
            if (IsSetName()) {
                xml.Append("<Name>");
                xml.Append(EscapeXML(this.Name));
                xml.Append("</Name>");
            }
            if (IsSetIsCategoryRoot()) {
                xml.Append("<IsCategoryRoot>");
                xml.Append(this.IsCategoryRoot);
                xml.Append("</IsCategoryRoot>");
            }
            if (IsSetProperties()) {
                BrowseNodeProperties  properties = this.Properties;
                xml.Append("<Properties>");
                xml.Append(properties.ToXMLFragment());
                xml.Append("</Properties>");
            }
            if (IsSetChildren()) {
                BrowseNodeChildren  children = this.Children;
                xml.Append("<Children>");
                xml.Append(children.ToXMLFragment());
                xml.Append("</Children>");
            }
            if (IsSetAncestors()) {
                BrowseNodeAncestors  ancestors = this.Ancestors;
                xml.Append("<Ancestors>");
                xml.Append(ancestors.ToXMLFragment());
                xml.Append("</Ancestors>");
            }
            if (IsSetTopSellers()) {
                TopSellers  topSellers = this.TopSellers;
                xml.Append("<TopSellers>");
                xml.Append(topSellers.ToXMLFragment());
                xml.Append("</TopSellers>");
            }
            if (IsSetNewReleases()) {
                NewReleases  newReleases = this.NewReleases;
                xml.Append("<NewReleases>");
                xml.Append(newReleases.ToXMLFragment());
                xml.Append("</NewReleases>");
            }
            return xml.ToString();
        }