Added xml mode for html support.