private void WriteStyle(XmlDocument doc, XmlElement me, object o) { if (o.GetType() != typeof(SvgStyle)) { me.SetAttribute("style", doc.NamespaceURI, o.ToString()); } else { SvgStyle svgStyle = (SvgStyle)o; me.SetAttribute("style", doc.NamespaceURI, svgStyle.ToString()); doc.CreateEntityReference("pingu"); } }
private void WriteStyle(XmlDocument doc, XmlElement me, object o) { if (o.GetType() != typeof(SvgStyle)) { me.SetAttribute("style", doc.NamespaceURI, o.ToString()); return; } SvgStyle style = (SvgStyle)o; /* * foreach(string s in style.Keys) * { * me.SetAttribute(s, doc.NamespaceURI, style.Get(s).ToString()); * } */ me.SetAttribute("style", doc.NamespaceURI, style.ToString()); doc.CreateEntityReference("pingu"); }