I'm trying to write the following bit of XML (it's part of a larger thing, but this is where I'm having a problem).
The code below yields the error:
System.ArgumentException: Invalid name character in 'ss:Name'. The ':' character, hexadecimal value 0x3A, cannot be included in a name.
What do I need to do instead?
Private Sub XMLWorkSheetHeader(ByVal iResultNum As Int16, ByVal iRows As Int32, ByVal iColumns As Int16, ByRef W As XmlWriter) W.WriteStartElement("Worksheet") W.WriteAttributeString("ss:Name", "Sheet" & iResultNum)