Example #1
0
 private ControllerNodeSet SetProperty(string name, object value, params System.String[] requiresElement)
 {
     foreach (XPathNavigator node in _nodes)
     {
         ControllerNodeSet nodeSet = new ControllerNodeSet(this, node);
         if (Array.IndexOf(requiresElement, node.Name) >= 0)
             nodeSet.Elem(name, value);
         else
             nodeSet.Attr(name, value);
     }
     return this;
 }