      */
     public function export():XML
     {
-        return TextFilter.export(textFlow, TextFilter.TCAL_FORMAT).children()[0];
+        return TextFilter.export(textFlow, TextFilter.TCAL_FORMAT,
+                                 ConversionType.XML_TYPE).children()[0];
     }
 
     /**

        if (textChanged || contentChanged || textAttributeChanged)
        {
            // Eliminate detritus from the previous TextFlow.
            if (textFlow)
            {
                var controller:IContainerController = textFlow.controller;
                if (controller)
                {
                    controller.clearAllSelectionShapes();
                    controller.clearCompositionResults();
                    controller.rootElement = null;
                }
                textFlow.container = null;
            }

            // Create a new TextFlow for the current text.
            _content = textFlow = createTextFlow();
                        
            // Tell it where to create its TextLines.
            textFlow.container = this;
            
            // Give it an EditManager to make it editable.
            textFlow.interactionManager = new TextViewEditManager(); 

		    {
			    if (text != null && text != "")
			    {
				    textFlow = TextFilter.importToFlow(text, TextFilter.PLAIN_TEXT_FORMAT);
			    }
			    else
			    {
