How to structure your XML document

    The Parent Element

    The <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

    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"?>
      <Speak>This is Plivo Cloud</Speak>