add XML support