title: Insert XML String into Python dictionary value
body: <p>I've had trouble searching this because there's a lot of &quot;turn xml into a dictionary&quot; posts but that's not what I'm looking for. I have no desire or need to parse the xml string.</p>
  <p>I have an xml string that I want to insert into one dictionary element. My dictionary looks like this</p>
  <pre><code>{'JobName':'Test','JobProgram':'1234','JobParameters':'&lt;xmlString&gt;&lt;some have=&quot;double quotes&quot; /&gt;&lt;theresAlso aPath=&quot;\\path\with\(paraenthesis)\goes\here&quot; /&gt;&lt;/xmlString&gt;'}
  </code></pre>
  <p>But that doesn't seem to work as is, I'm guessing it has to do with the &lt;&gt; and double quotes. So what do I need to do?</p>
  <p>My end goal is to send all this as a POST command to URL.php using the <code>requests</code> library in python. URL.php then uses htmlspecialchars($JobParameters), so I'm not fully sure I know what it expects as input either, raw xml or stripslashes(xml) or something else. I can read but cannot edit the php file.</p>