A
Andrea Grandi
Hello,
I've created my .config file:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="prova" value="pippo" />
</appSettings>
</configuration>
I tried reading this using the Configuration class in OpenNetCF with no
success. I tried to write to their forum, no reply.
I tried this XPath query "/configuration/appSettings/add[@key=" + key +
"]/@value" with no success
SelectNode and SelectSingleNode is not available in .Net CF.
I googled for two days, finding only samples that don't work (for
example this: http://www.dotnet247.com/247reference/msgs/58/290766.aspx)
I know that XMLDocument is loaded because in the debug I can see this:
? doc.OuterXml
"<?xml version="1.0" encoding="utf-8"?><configuration><appSettings><add
key="prova" value="pippo" /></appSettings></configuration>"
Can anyone help me please? I just want to read configuration from a
..config file in an easy way.
Thanks!
I've created my .config file:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="prova" value="pippo" />
</appSettings>
</configuration>
I tried reading this using the Configuration class in OpenNetCF with no
success. I tried to write to their forum, no reply.
I tried this XPath query "/configuration/appSettings/add[@key=" + key +
"]/@value" with no success
SelectNode and SelectSingleNode is not available in .Net CF.
I googled for two days, finding only samples that don't work (for
example this: http://www.dotnet247.com/247reference/msgs/58/290766.aspx)
I know that XMLDocument is loaded because in the debug I can see this:
? doc.OuterXml
"<?xml version="1.0" encoding="utf-8"?><configuration><appSettings><add
key="prova" value="pippo" /></appSettings></configuration>"
Can anyone help me please? I just want to read configuration from a
..config file in an easy way.
Thanks!