1. A method for encoding XML, comprising the computer-implemented steps of: receiving a request for a specified amount of binary encoded XML; in response to the request, encoding text XML on a per-node basis until sufficient binary XML has been generated to satisfy the request; responding to the request with said amount of binary XML; and once the request has been satisfied, ceasing to encode the text XML until receiving a subsequent request for binary encoded XML.