title: Flex3: Escaping Characters in XML
body: <p>I'm using Flex 3, SDk 3.6, Flash Player 10.</p>
  
  <p>Flex is giving me syntax errors if I don't escape characters in my XML data. For example:</p>
  
  <pre><code>&lt;mx:XML xmlns=""&gt;
         &lt;group&gt;
      &lt;place stackName="Place1"&gt;
          &lt;name&gt;Place ABC&lt;/name&gt;
          &lt;encoding&gt;ieqlFjiguM?_YHW\k@ZYd@UNAcA{AsGaLkJcRkAuBpm@BjBlJdBlJZ`@fCfBd@r@dFnMbCxF|B`Fn@fAmCViDHu@RoCnAsCfA}BhAe@`@OZu@fDSb@wAj@e@VUq@uB}@aAy@yCf@_AFs@i@Fe@y@}@Eo@c@@[[CcAQAk@ZQf@o@BIA?W&lt;/encoding&gt;
      &lt;/place&gt;
          &lt;/group&gt;
  &lt;/mx:XML&gt;
  </code></pre>
  
  <p>In this case, the data surrounded by the  tags causes a problem. If I add a backslash to all of the special characters, then I don't get any errors, but I can't use it to make a google maps encoded polygon. </p>
  
  <p>Edit:
  These are the errors I'm getting: </p>
  
  <p>1084: Syntax error: expecting colon before rightparen.<br>
  1084: Syntax error: expecting rightparen before ampersand.<br>
  1084: Syntax error: expecting rightparen 
  1093: Syntax error.<br>
  1093: Syntax error. 
  Syntax error: expecting identifier before rightbrace. [Generated code (use -keep to save)
  Syntax error: expecting rightparen before rightbrace. [Generated code (use -keep to save)</p>