示例#1
0
        /// <summary>
        /// Converts XML previously generated by XmlExport.Export to an Ember tree.
        /// </summary>
        /// <param name="reader">XmlReader pointing to the data to import.</param>
        /// <param name="application">Application interface used to create nodes with
        /// application-defined types.</param>
        /// <returns>The root of the imported ember tree.</returns>
        public static EmberNode Import(XmlReader reader, EmberApplicationInterface application)
        {
            var import = new XmlImport(reader, application);

            return(import.Convert());
        }
示例#2
0
        /// <summary>
        /// Converts XML previously generated by XmlExport.Export to an Ember tree.
        /// </summary>
        /// <param name="reader">XmlReader pointing to the data to import.</param>
        /// <param name="application">Application interface used to create nodes with
        /// application-defined types.</param>
        /// <returns>The root of the imported ember tree.</returns>
        public static EmberNode Import(XmlReader reader, EmberApplicationInterface application)
        {
            var import = new XmlImport(reader, application);

             return import.Convert();
        }