The XML Specification states:
The ampersand character (&) and the left angle bracket (<) must not appear in their literal form, except when used as markup delimiters, or within a comment, a processing instruction, or a CDATA section. If they are needed elsewhere, they must be escaped using either numeric character references or the strings " & " and " < " respectively. The right angle bracket (>) may be represented using the string " > ", and must, for compatibility, be escaped using either " > " or a character reference when it appears in the string " ]]> " in content, when that string is not marking the end of a CDATA section.
So, you need to either escape the left angle bracket in your error string:
Error occurred. No value passed for the field <name>.
Or encapsulate the entire error string in a CDATA section:
<![CDATA[Error occurred. No value passed for the field <name>.]]>
For more information see http://www.w3.org/TR/xml/#syntax