Methods and systems for generating and sending an XML document are described.
In one embodiment, an XML response generator responds to a client request without
having to first build and save a hierarchical tree structure in memory that represents
the response.