patches for ZSI - to add XML declaration