开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜