I am attempting to perform that very task in my code.
so far I have
foreach (XPathNavigator category in MainDataSource.CreateNavigator().Select("my:myFields/my:Categories/my:Category",NamespaceManager))
{
foreach (XPathNavigator responsibility in category.Select("my:myFields/my:Responsibilities/my:Responsibility",NamespaceManager))
{
responsibility.SelectSingleNode("my:IsExpanded").SetValue("true()");
}
}
to expand out a nested node.
My problem is, I get a System.Security.SecurityException with an error of 'Request Failed' on the first line. I have tried for a few hours now different values for that xpath query, but everything seems to throw a SecurityException.
I read somewhere that if I have VS2008 installed, then I need to set me assembly in partial trust mode. Does anyone know how to get rid of these ridiculous securityexceptions???