FAQ: Processing Errors due to Illegal XML Characters

Sentry administrators may occasionally encounter XML parsing errors due to request or response data including illegal XML characters.  

 

Some examples of Sentry generated errors due to invalid XML characters include:

"The entity name must immediately follow the '&' in the entity reference."

"The reference to entity "value" must end with the ';' delimiter."

"The content of elements must consist of well-formed character data or markup."

 

To resolve these errors, ensure that the "<" and "&" characters are replaced with their appropriate entity references.

 

There are 5 predefined entity references in XML. Each of these should be used in place of th

Character Entity Reference Name
< &lt; less than
> &gt; greater than
& &amp; ampersand
' &apos; apostrophe
" &quot; quotation mark

 

Only the characters "<" and "&" are strictly illegal in XML and will cause Sentry to fail. The greater than character is legal, but it is a good habit to replace it.

 

 

For reference please see:

http://www.w3schools.com/xml/xml_syntax.asp

http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references

Have more questions? Submit a request

0 Comments

Article is closed for comments.