ToXMLFragment() protected method

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
return String
        /// <summary>
        /// XML fragment representation of this object
        /// </summary>
        /// <returns>XML fragment for this object.</returns>
        /// <remarks>
        /// Name for outer tag expected to be set by calling method.
        /// This fragment returns inner properties representation only
        /// </remarks>


        protected internal String ToXMLFragment()
        {
            StringBuilder xml = new StringBuilder();

            if (IsSetAllOfferListingsConsidered())
            {
                xml.Append("<AllOfferListingsConsidered>");
                xml.Append(this.AllOfferListingsConsidered);
                xml.Append("</AllOfferListingsConsidered>");
            }
            if (IsSetProduct())
            {
                Product productObj = this.Product;
                xml.Append("<Product>");
                xml.Append(productObj.ToXMLFragment());
                xml.Append("</Product>");
            }
            if (IsSetError())
            {
                Error errorObj = this.Error;
                xml.Append("<Error>");
                xml.Append(errorObj.ToXMLFragment());
                xml.Append("</Error>");
            }
            return(xml.ToString());
        }