3.0 DSMLv2 Document Structure

There are two types of DSMLv2 documents:

In a DSMLv2-based interaction between a client and a server there is a pairing of requests and responses. For each request document submitted by the client, one response document is produced by the server.

Figure 3-1 DSMLv2 Documents

The top-level element of a request fragment is a BatchRequest and the top-level element of a response fragment is a BatchResponse.

A BatchRequest contains zero, one, or many individual request elements and a BatchResponse consists of zero, one or many individual response elements. A BatchRequest containing zero request elements is a valid request; the valid response is a BatchResponse containing zero response elements. Such a batch requestresponse pair can be used to verify that a server is capable of processing DSMLv2 documents.

For sample DSMLv2, see Samples.