开发者

The ':' character, hexadecimal value 0x3A, cannot be included in a Attribute name [duplicate]

开发者 https://www.devze.com 2023-01-10 12:19 出处:网络
This question already has answers here: Closed 12 years ago. Possible Duplicate: The ‘:’ character, hexadecimal value 0x3A, cannot be included in a name
This question already has answers here: Closed 12 years ago.

Possible Duplicate:

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

I get that error when i use LinQ to XML .It's clear the error is due to reading XML and not linQ.

Xml used:

<Worksheet ss:Name="Loca开发者_如何学Pythontion" ss:Protected="1">

I'm facing problem reading the Attribute value "ss:Name".


You should use provided support of namespaces in LINQ to XML. Look for XNamespace class.

0

精彩评论

暂无评论...
验证码 换一张
取 消