Added XML stripping code