Getting decendant node that contains “:”?

Symnenagewese

New Member
I have loaded a XML into a XDocument that looks something like this : \[code\]<MyXML xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MyApp.Client.Main.GUI.Report"> <Wrapper xmlns:d2p1="http://schemas.datacontract.org/2004/07/MyApp.Business.Entity"> <d2p1:_MultipelAttributId>156</d2p1:_MultipelAttributId> </Wrapper></MyXML>\[/code\]Now I need to get the value of _MultipelAttributId but when stating this : \[code\]XElement element = (from cml2 in doc.Descendants("d2p1:_MultipelAttributId") select cml2).FirstOrDefault();\[/code\]I get exception about the ":"?So how do I get the valiue?
 
Back
Top