Skip to contentSkip to navigationSkip to topbar
On this page

Document parse failure



ERROR: 12100

error-12100 page anchor
ERROR

Document parse failure

document-parse-failure page anchor

Twilio was unable to parse the provided XML Document.

Your TwiML document must be a valid XML Document, or Twilio will not be able to read your document. You can debug XML parsing errors by getting the response body in the debugger, and then using an online validation tool like the W3C Validation Service(link takes you to an external page).

Possible Causes

possible-causes page anchor
  • There is a leading space, or an empty line, before the XML type header (i.e. <?xml version="1.0" encoding="UTF-8"?> )
  • The root <Response> element is missing
  • There is an unclosed element
  • There is an unquoted attribute
  • There is an improperly nested element
  • Make sure there is no extra space or line at the beginning of the file before the type header
  • Make sure your root element is <Response>
  • XML is case sensitive, make sure your start and end elements match case. (Twilio elements begin with a capital letter)
  • Make sure characters such as < > and & are escaped properly, as &lt; &gt; and &amp; .

Need some help?

Terms of service

Copyright © 2024 Twilio Inc.