I'm making a real basic editor for spritefont files that will just read and write the XML representations so that it's a little easier to choose fonts and see what they look like before compiling. Everything's going smoothly, except when trying to write this line:
<XnaContent xmlns:Graphics="Microsoft.Xna.Framework.Content.Pipeline.Graphics">
I tried using this code:
writer.WriteStartElement("XnaContent");
writer.WriteAttributeString("xmlns:Graphics", "Microsoft.Xna.Framework.Content.Pipeline.Graphics");
but I got an exception about the : in the name:
Invalid name character in 'xmlns:Graphics'. The ':' character, hexadecimal value 0x3A, cannot be included in a name.
Any ideas how to write out that line some other way perhaps?