1 Reply Latest reply on May 19, 2008 2:12 AM by peterent

    Error when compiling mxml

    random777
      Hi all,

      I'm trying to compile a mxml file and I'm getting the following error:-

      C:\flex_sdk_3\bin>mxmlc test.mxml
      Loading configuration file C:\flex_sdk_3\frameworks\flex-config.xml
      C:\flex_sdk_3\bin\test.mxml(13): col: 718 Error: An invalid XML character (Unicode: 0x7) was found in the element content of the document.

      Any idea how could I resolve this problem?

      Thanks in advance.
        • 1. Re: Error when compiling mxml
          peterent Level 2
          Sounds like you have either an ampersand (&), greater-than (>), or less-than (<) character side of an XML expression. For example:

          <mx:Text text="{ alpha < beta ? 'Hello' : 'World'}" />

          or

          <mx:Text text="Bob & Ray" />

          If you do have this, switch to encoded characters such as &amp; &lt; &gt; or use the XML encode values which I don't know off the top of my header; you'll have to look them up.