I would venture that the resource constrained platforms are going to be passing relatively small documents anyway. Even the more capable systems should be passing multiple small documents instead of huge documents.
Let's just use gzip.
"I have a mind like a steel... uh... thingy." Patrick Logan's weblog.