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

I had tried the xpath you mentioned already. Here is what is happening. Below is the XML that represents the ldap server and the mysql server. When the above xpath is executed, the elements that are returned (apart from all the other elements that contain the same '@computer' attribute) are the Instance sub element of the LDAPServerProcess and the MySQLProcess. The MySQLProcess can be checked directly but there is no way to get the Parent of the Instance element using any functions in the IPropertyTree class, other than traversing the tree from the root. Therefore I cannot tell the type of the Instance by just looking at it. Hence I had to treat LDAPServerProcess separately..