0 Replies Latest reply on Nov 21, 2008 7:18 AM by Troy_Hanisch

    Mixed Content XML

    Troy_Hanisch
      I am trying to load an XML file which has a mixed content model. Here is an example:
      <?xml version="1.0" encoding="utf-8"?>
      <tag1>This is my<tag2>XML</tag2> sample</tag1>

      This is XML data and not HTML data.

      Here's my App.
      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute">

      <mx:XML id="tempXML" source="file:///c:/flex/sample.xml" />

      </mx:Application>

      I get the following messages:
      Encountered "<tag2>" at line 2, column 17. Was expecting: Non-MXML language element ...
      Problem parsing external XML: file:/c:/flex/sample.xml

      Are there workarounds/fixes for this issue? This is valid XML and I want to be able to use it to populate data grids and I also want to be able to display the XML in a TextArea.