adding XML support.