 		staticConfiguration.textFlowInitialFormat =
             staticTextLayoutFormat;
 
-        if (markup is String)
+        if (markup is XML || markup is String)
         {
 	        // We need to wrap the markup in a <TextFlow> tag
 	        // unless it already has one.


	        if (wrap)
	        {
	            markup = '<TextFlow xmlns="http://ns.adobe.com/textLayout/2008">' +
	                     markup +
	                     '</TextFlow>';
	        }
        }
        
        return TextFilter.importToFlow(markup, TextFilter.TEXT_LAYOUT_FORMAT,
                                       staticConfiguration);
    }
    
    /**

            var t:String = mx_internal::_text;
            if (t != null && t != "")
            {
                textFlow = importToFlow(t, TextFilter.PLAIN_TEXT_FORMAT);
            }
            else
            {
