Пример #1
0
        /// <summary>
        /// It returns the XML string of the SVG tree starting from the element.
        /// </summary>
        /// <returns>XML string.</returns>
        /// <remarks>The method is recursive so it creates the SVG string for the current element and for its
        /// sub-tree. If the element is the root of the SVG document the method return the entire SVG XML string.</remarks>
        public string GetXML()
        {
            string sXML;

            sXML = OpenXMLTag();

            if (m_Child != null)
            {
                sXML += m_Child.GetXML();
            }

            sXML += CloseXMLTag();

            SvgElement ele = m_Next;

            if (ele != null)
            {
                sXML += ele.GetXML();
            }

            ErrH.Log("SvgElement", "GetXML", ElementInfo(), ErrH._LogPriority.Info);

            return(sXML);
        }