<Response> element is the parent element of Plivo’s XML. All child elements must be nested within this element. Any other structure is considered invalid.
The child elements are Plivo’s proprietary elements and are case-sensitive. For example, using
<speak> instead of
<Speak> will result in an error. Attributes for the child elements are also case sensitive and “camelCased.”
When Plivo receives an XML response, it executes the elements from top to bottom. As an example, the following XML snippet first announces “This is Plivo Cloud” to the caller, then plays the MP3 file, and finally hangs up.
<?xml version="1.0" encoding="UTF-8"?> <Response> <Speak>This is Plivo Cloud</Speak> <Play>https://s3.amazonaws.com/plivocloud/Trumpet.mp3</Play> </Response>