J
juvi
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
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