SVG XML textPath SetAttribute
-
Hi all, I am using c# and asp.net to construct an SVG file (just an XML file) to display in the browser. I am having a problem writing out a textPath. My code is as follows: XmlElement textPath = doc.CreateElement("textPath", "http://www.w3.org/2000/svg"); textPath.SetAttribute("xlink:href", "#myPath"); textPath.InnerText = "SomeText"; text.AppendChild(textPath); myPath is defined earlier and put in the section, and text is just another XmlElement. The problem occurs with the SetAttribute. What I want to appear is: SomeText But what I actually get is: SomeText i.e. the xlink: is missing. The intellisense and MSDN inform me that the colon is parsed into something called prefix and localname, but obviously I don't want it do do this. Does anybody know how I can stop this happening, or a workaround? Thanks in advance, Anthony