Basic functions for XML support