smeda/HPCC-Platform — comment on commit cb149121df8739c4f0a99e5f4c89bfbd27686264
File: deployment/configgen/main.cpp line 325
By afishbeck:

PropertyTree xpath is actually pretty powerful. You could probably do it all in one by using xpath = "Software/*[//@computer='%s']". If that works it will be a smaller set because for instance you would probably get one RoxieCluster back when any node was on "@computer".

I don't really like relying on the buildset much, I would prefer checking streq(pComponent->queryName(), "MySQLProcess").

So that means you would iterate over
xpath.appendf("Software/*[//@computer='%s']", name);
it = pEnv->getElements(xpath);
ForEach(*it)
{
IPropertyTree &t = it->query();
if (!streq(t.queryName(), "MySQLProcess") && !streq(t.queryName(), "LDAPServerProcess"))
{
itsAKeeper=true;
break;
}