It could probably be replaced with

```
unsigned thisNodePrimaryChannel = node.getPropInt("RoxieChannel[@level='0']/@number", 0);
```

But that would not cope with the defaulting of omitted level attribute to mean 0. I'm also concerned about it being ambiguous.

Seems to me a lot of assumptions are being made about valid roxie configurations here - configurations that Roixe would be happy to implement won't be fully supported elsewhere (e.g. a system with more than one slave marked as primary for a channel).