Actually that would be pretty trivial to program using SAX. The startElement and endElement methods would have to build and use a replacement table. However, before you embark on that
you should look into how much compression the plain ZIP compression utility can provide.
I looked into both ZIP encoding and "fast infoset" for
this article. ZIP encoding compressed my
test file by more than a factor of 10 with only a minor effect on parsing time.
Let us know what you come up with, I think a lot of people are worried about large XML files.
Bill