xml tag can consists of integer values or can contains special characters?

zaltom

New Member
For example.Are these xml tags acceptable or not.\[code\]<xml> <3333>abc</3333> <ab#$3>def</ab#$3></xml>\[/code\]My question is can I create tags of integers values or a tag with Special characters ?I tried this \[code\]FileStream fs = new FileStream((filename), FileMode.Append); XmlWriter w = XmlWriter.Create(fs); w.WriteStartElement("3454");\[/code\]and got the following error{System.ArgumentException: Invalid name character in '3454'. The '3' character, hexadecimal value 0x33, cannot be included in a name. at System.Xml.XmlWellFormedWriter.CheckNCName(String ncname) at System.Xml.XmlWellFormedWriter.WriteStartElement(String prefix, String localName, String ns) at System.Xml.XmlWriter.WriteStartElement(String localName) at WindowsFormsApplication1.Form1.fn_setMapping(SqlString keyString, SqlString column, SqlString value) in D:\Projects\WindowsFormsApplication1\WindowsFormsApplication1\Form1.cs:line 129}Thank You
 
Back
Top