Hello Group-
  I have an app that receives XML data over the socket. Specifically,
it is data that is in 2 formats (plain text and HTML).

The HTML that gets sent represents the FULL html code (i.e. the
top-level 'html', 'meta', 'head', 'style', 'div', 'body' tags etc..).

Sometimes the tags have namespaces and even 'class' attributes
assigned to them which relate to styles defined w/i the <style> tag.

For this reason, I can't just set the XML value to the 'htmlText'
attribute of a text field. 

I tried using the ExternalInterface API and pass the HTML (see example
below) to a javscript method which opens a new window and calls
'document.write(passedValueFromFlex)', but that does not work b/c of
the extra rows between tags. If I manually remove the white spaces
from each row where the HTML is one long String...it works fine. 

Using a parser to handle that would be near impossible to create
though. Does anyone have any ideas for a solution (to display HTML)???? 

Thanks.



<message>
      <plainText>This is the message.</plainText>
      <htmlText>&lt;html&gt;



&lt;head&gt;

&lt;/head&gt;



&lt;body lang=EN-US&gt;

This is the &lt;b&gt;message&lt;/b&gt;.

&lt;/body&gt;



&lt;/html&gt;
    </htmlText>
</message>






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to