Various utilities for PGM xml