Input string was not in a correct format Posted on December 4, 2013 by zhongdaiqi string.Format(@”{0}: {{ Name: ‘{1}’}},”, node.Attributes[“ID”].Value, node.Attributes[“Name”].Value) 字符串里包含{}得使用{{}}