/// <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(); } }
/// <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(); } }
/// <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(); } }
/// <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(); } }