Methods and systems for preparing extensible markup language (XML) documents and for responding to XML requests
First Claim
Patent Images
1. A system comprising:
- a processor; and
a memory storing a program which, when executed by the processor, performs a method of responding to a request for Extensible Markup Language (XML) comprising;
gathering data for a response to the received request using a request method object;
calling an emitter object and passing the gathered data to the emitter object in a defined order preserving the order of the hierarchy of the XML document to be created;
formatting a portion of the gathered data into a correct XML syntax using the emitter object; and
emitting the portion of the formatted gathered data from the emitter object to a body object, the body object accumulating the formatted gathered data in a buffer;
sending the formatted gathered buffered data when the buffer contains a defined amount of formatted gathered data that is less than an amount that would equal a complete response; and
formatting, emitting, and sending subsequent portions until a complete response has been generated.
1 Assignment
0 Petitions
Accused Products
Abstract
Methods and systems for generating and sending an XML document are described. In a specific implementation, methods and systems for responding to an XML client request utilize an XML response generator. The XML response generator responds to a client request without having to first build and save the entire response. An emitter object is provided that receives data that is gathered. The calls are made in a particular order and ensure that the hierarchical nature of the response that is being built is preserved. The emitter object translates the data that it receives into response portions that are in proper XML syntactic form.
-
Citations
4 Claims
-
1. A system comprising:
-
a processor; and a memory storing a program which, when executed by the processor, performs a method of responding to a request for Extensible Markup Language (XML) comprising; gathering data for a response to the received request using a request method object; calling an emitter object and passing the gathered data to the emitter object in a defined order preserving the order of the hierarchy of the XML document to be created; formatting a portion of the gathered data into a correct XML syntax using the emitter object; and emitting the portion of the formatted gathered data from the emitter object to a body object, the body object accumulating the formatted gathered data in a buffer; sending the formatted gathered buffered data when the buffer contains a defined amount of formatted gathered data that is less than an amount that would equal a complete response; and formatting, emitting, and sending subsequent portions until a complete response has been generated. - View Dependent Claims (2, 3, 4)
-
Specification