Title is not an attribute, it's a child node.
--
Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com
"juvi" <(E-Mail Removed)> wrote in message
news:BDEA095B-8394-451D-ADE4-(E-Mail Removed)...
> Hello,
>
> I want change my application to support language files from xml and I
> created a language.xml - but my problem is now that I am not able to get a
> specific element value back from a node (wanted to use XPath):
>
> xml looks like this:
>
> <language>
> <MainDialog>
> <panel>
> <title>Main Panel</title>
> </panel>
> </MainDialog>
> </language>
>
> I loaded the document with an XmlTextReader to a XmlDocument and wanted to
> use the following which has unfortunately no value:
>
> doc.SelectSingleNode("/language/MainDialog/panel").Attributes["title"].Value.ToString();
>
> What am I doing wrong?? Thanks for any help in advance.
>
> BR, juvi