/// <summary> /// Prints the XML representation of the metadata element. /// <para> /// Implementation calls the <see cref="ToXmlData.ToXml"/> /// method for its implementation. /// </para> /// </summary> /// <param name="formatter"> /// A <see cref="ToXmlFormatter"/> object that /// specifies method implementations for printing /// media objects. /// </param> /// <param name="data"> /// This object should be a <see cref="ToXmlData"/> /// object that contains additional instructions used /// by the "formatter" argument. /// </param> /// <param name="xmlWriter"> /// The <see cref="XmlTextWriter"/> object that /// will format the representation in an XML /// valid way. /// </param> /// <exception cref="InvalidCastException"> /// Thrown if the "data" argument is not a <see cref="ToXmlData"/> object. /// </exception> public void ToXml(ToXmlFormatter formatter, object data, XmlTextWriter xmlWriter) { ToXmlData.ToXml(this, formatter, (ToXmlData)data, xmlWriter); }