Esempio n. 1
0
        /// <summary>
        /// load the document from the spedified text reader
        /// </summary>
        /// <param name="txtReader"></param>
		public override void Load(TextReader txtReader) 
		{
			MathMLReader reader = new MathMLReader(txtReader);
			try 
			{
				this.Load(reader);
			}
			finally 
			{
				reader.Close();
			}
		}
Esempio n. 2
0
        /// <summary>
        /// load the document from the spedified text reader
        /// </summary>
        /// <param name="txtReader"></param>
        public override void Load(TextReader txtReader)
        {
            MathMLReader reader = new MathMLReader(txtReader);

            try
            {
                this.Load(reader);
            }
            finally
            {
                reader.Close();
            }
        }
Esempio n. 3
0
        /// <summary>
        /// load the mathml document from the specified stream
        /// </summary>
        /// <param name="inStream"></param>
        public override void Load(Stream inStream)
        {
            MathMLReader reader = new MathMLReader(inStream);

            try
            {
                this.Load(reader);
            }
            finally
            {
                reader.Close();
            }
        }
Esempio n. 4
0
        /// <summary>
        /// load the document from the a file specified by the given filename
        /// </summary>
        /// <param name="filename"></param>
        public override void Load(string filename)
        {
            MathMLReader reader = new MathMLReader(filename, NameTable);

            try
            {
                Load(reader);
            }
            finally
            {
                reader.Close();
            }
        }
Esempio n. 5
0
        /// <summary>
        /// load the mathml document from the specified stream
        /// </summary>
        /// <param name="inStream"></param>
		public override void Load(Stream inStream) 
		{
			MathMLReader reader = new MathMLReader(inStream);

			try 
			{
				this.Load(reader);
			}
			finally 
			{
				reader.Close();
			}
		}
Esempio n. 6
0
        /// <summary>
        /// load the document from the a file specified by the given filename
        /// </summary>
        /// <param name="filename"></param>		
		public override void Load(string filename) 
		{
			MathMLReader reader = new MathMLReader(filename, NameTable);

			try 
			{
				Load(reader);
			}
			finally 
			{
				reader.Close();
			}
		}
Esempio n. 7
0
        /// <summary>
        /// override the base LoadXML to use a MathMLReader instead of a
        /// XmlReader in order to resolve mathml entities.
        /// </summary>
        /// <param name="xml">a string in xml format</param>
        public override void LoadXml(string xml)
        {
            StringReader strReader = new StringReader(xml);
            MathMLReader reader    = new MathMLReader(strReader);

            try
            {
                this.Load(reader);
            }
            finally
            {
                reader.Close();
            }
        }
Esempio n. 8
0
		/// <summary>
		/// override the base LoadXML to use a MathMLReader instead of a 
		/// XmlReader in order to resolve mathml entities.
		/// </summary>
		/// <param name="xml">a string in xml format</param>
		public override void LoadXml(string xml) 
		{
			StringReader strReader = new StringReader(xml);
			MathMLReader reader = new MathMLReader(strReader);
			try 
			{
				this.Load(reader);
			}
			finally 
			{
				reader.Close();
			}
		}