I'd tackle this problem in two steps:
First, make a manual change to the XML and see if the manual change (done with the Windows Editor) is accepted by EG after re-zipping.
Only when you know how to do it manually and that it works, you can start to automate things. The manual method also lets you test what needs to be preserved (like trailing blanks or similar).
Then, look for a tool that accomplishes the automated change. On UNIX I'd try to unzip, run awk on the XML in question, and then re-zip. UNIX tools are always good for scripting and automating. SAS might not be the right tool in the end.
... View more