<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.
Child elements are Plivo’s proprietary elements and are case-sensitive. For example, using
<speak> instead of
<Speak> would result in an error. Attributes for child elements are also case-sensitive and “camelCased.”
When Plivo receives an XML response, it executes elements from top to bottom. For example, the XML snippet at right first announces “This is Plivo” to the caller, then plays an MP3 file, then hangs up.
<?xml version="1.0" encoding="UTF-8"?> <Response> <Speak>This is Plivo</Speak> <Play>https://s3.amazonaws.com/plivocloud/Trumpet.mp3</Play> </Response>