Entity Equivalents for Disallowed XML Characters

XML contains certain reserved characters that must be referenced as entities when the literal character is needed. For example, the open angle bracket (<) is a reserved character that must be referenced using the entity &lt; to attain the literal character in XML.

A common scenario that requires the use of entities is when creating XML to be submitted to the Jamf Pro server via the Jamf API using cURL.

If you submit XML to the Jamf Pro server via the Jamf API and the XML contains literal reserved characters instead of entities, an "HTTP 400 (bad request)" error could result.

XML Reserved Characters and Entity Equivalents

The following table lists the XML reserved characters and their entity equivalents:

Reserved CharacterEntity Name
< &lt;
> &gt;
& &amp;