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 |
< | < | less than |
> | > | greater than |
& | & | ampersand |
' | ' | apostrophe |
" | " | 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
0 Comments