例えば。これらのxmlタグは受け入れ可能かどうか。
<xml>
<3333>abc</3333>
<ab#$3>def</ab#$3>
</xml>
私の質問は、整数値のタグまたは特殊文字のタグを作成できますか?
私はこれを試しました
FileStream fs = new FileStream((filename), FileMode.Append);
XmlWriter w = XmlWriter.Create(fs);
w.WriteStartElement("3454");
次のエラーが発生しました
{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)
ありがとうございました