【问题标题】:The ':' character, hexadecimal value 0x3A, cannot be included in a Attribute name [duplicate]':' 字符,十六进制值 0x3A,不能包含在属性名称中 [重复]
【发布时间】:2010-08-03 07:37:54
【问题描述】:

可能重复:
The ‘:’ character, hexadecimal value 0x3A, cannot be included in a name

当我使用 LinQ to XML 时出现该错误。很明显该错误是由于读取 XML 而不是 linQ。

使用的Xml:

<Worksheet ss:Name="Location" ss:Protected="1">

我在读取属性值“ss:Name”时遇到问题。

【问题讨论】:

    标签: linq-to-xml


    【解决方案1】:

    您应该使用 LINQ to XML 中提供的命名空间支持。查找XNamespace 类。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-08-27
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多