using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
namespace Svg
{
///
/// Represents a list of re-usable SVG components.
///
[SvgElement("metadata")]
public class SvgDocumentMetadata : SvgElement
{
// private string _metadata;
///
/// Initializes a new instance of the class.
///
public SvgDocumentMetadata()
{
Content = "";
}
//public string Metadata
//{
// get { return _metadata; }
// set { _metadata = value; }
//}
///
/// Renders the and contents to the specified object.
///
/// The object to render to.
protected override void Render(SvgRenderer renderer)
{
// Do nothing. Children should NOT be rendered.
}
protected override void WriteChildren(XmlTextWriter writer)
{
writer.WriteRaw(this.Content); //write out metadata as is
}
public override SvgElement DeepCopy()
{
return DeepCopy();
}
public override void InitialiseFromXML(XmlTextReader reader, SvgDocument document)
{
base.InitialiseFromXML(reader, document);
//read in the metadata just as a string ready to be written straight back out again
Content = reader.ReadInnerXml();
}
}
}