paul.d.mcswain
07-31-2009, 01:47 PM
When using the XML.GetAttribute/SetAttribute, I'm getting an error when I specify a path of "/configuration/appSettings/add[1]" it gives an error.
I'm pretty sure that this is a valid XPath statement for the following XML:
<configuration>
<appSettings>
<add key="blah" value="fred was here" />
<add key="yabba" value="wilma was here" />
<add key="dabba" value="barney was here" />
</appSettings>
</configuration>
What am I doing incorrectly?
Thanks
Paul.
I'm pretty sure that this is a valid XPath statement for the following XML:
<configuration>
<appSettings>
<add key="blah" value="fred was here" />
<add key="yabba" value="wilma was here" />
<add key="dabba" value="barney was here" />
</appSettings>
</configuration>
What am I doing incorrectly?
Thanks
Paul.