I guess I can do getElements("Server[@name!=\"ECLagent\"]")) first and then, do: getElements("Server[@name=\"ECLagent\"]"));