Item objItem = _inn.newItem("Identity", "get");
Item logicItm = objItem.newOR();
logicItm.setProperty("name", "%Admin%");
logicItm.setProperty("name", "%Author%");
Item iChildren = objItem.getLogicalChildren();
for (int i = 0; i < iChildren.getItemCount(); i++)
{
Item iChild = iChildren.getItemByIndex(i);
XmlDocument objXDoc = new XmlDocument();
XmlAttribute objNewAtt = objXDoc.CreateAttribute("condition");
objNewAtt.Value = "like";
XmlNodeList allNames = iChild.node.SelectNodes("name");
foreach (XmlNode eachName in allNames)
{
eachName.Attributes.SetNamedItem(objNewAtt);
}
}
Item retItm = objItem.apply();