Hello,
I am trying to query an xml table. Here's the basic structure:
<Table>
<GroupPermissions>
<Group GroupName="Name">
<ModuleRestricitons>
<Module1>
<Button1 value="False" />
</Module1>
</ModuleRestrictions>
</Group>
</GroupPermissions>
</Table>
The logic I am tyring to perform is this: Where GroupName="Name" set button 1 value="True". There are many other groups, so I need a way to query that specific group and then set the button value within that group.
I have tried:
xmlDoc.Element("Table")
.Element("GroupPermissions")
.Element("Group")
.Element("ModuleRestrictions")
.Element("Module1")
.Element("Button1")
.Attribute("value")
.SetValue("true");
But I don't see any way to set it to the specific group. At the moment, this sets the value for all groups. Does anyone know how to restrict this to a specific GroupName attribute? Thanks!