views:

32

answers:

0

Possible Duplicate:
How to query an XDocument with LINQ when elements have a colon in their name?

I tried using XDocument to read a xml file that contains elements like this

<link:direct ...>

running the code

xml.Elements("link:direct")

gives me an error saying that I cannot use ':'

The ':' character, hexadecimal value 0x3A, cannot be included in a name.

How can I retrieve those elements?