Utilities to deal with XML