in reply to perl substitute

mmmh....

s#</informationTable>'##g;

Maybe not relevant, but check the use of the "'" here