/// <summary> /// It returns the XML string of the entire SVG document. /// </summary> /// <returns> /// The SVG document. An empty string if the document is empty. /// </returns> public string GetXML() { if (m_root == null) { return(""); } string sXML; sXML = m_sXmlDeclaration + "\r\n"; sXML += m_sXmlDocType; sXML += "\r\n"; sXML += m_root.GetXML(); return(sXML); }
/// <summary> /// It returns the XML string of the entire SVG document. /// </summary> /// <returns> /// The SVG document. An empty string if the document is empty. /// </returns> public string GetXML() { if (m_root == null) { return(""); } string sXML; sXML = m_sXmlDeclaration + "\r\n"; foreach (String styleSheet in this.StyleSheets) { sXML += $"<?xml-stylesheet {styleSheet}?>\r\n"; } sXML += m_sXmlDocType + "\r\n"; sXML += m_root.GetXML(); return(sXML); }