Provides means to create a Glow tree from XML, which must be in the schema produced by GlowXmlExport.
Example #1
0
        /// <summary>
        /// Imports XML in the data schema produced by GlowXmlExport.Export.
        /// </summary>
        /// <param name="reader">The XmlReader to read XML from.</param>
        /// <returns>A new instance of a class derived from GlowContainer
        /// or null if the XML root is unknown.</returns>
        public static GlowContainer Import(XmlReader reader)
        {
            var instance = new GlowXmlImport();
             var xml = XElement.Load(reader);

             return instance.Convert(xml);
        }
        /// <summary>
        /// Imports XML in the data schema produced by GlowXmlExport.Export.
        /// </summary>
        /// <param name="reader">The XmlReader to read XML from.</param>
        /// <returns>A new instance of a class derived from GlowContainer
        /// or null if the XML root is unknown.</returns>
        public static GlowContainer Import(XmlReader reader)
        {
            var instance = new GlowXmlImport();
            var xml      = XElement.Load(reader);

            return(instance.Convert(xml));
        }