Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

html formatting not appearing

Posted on 2004-10-06
10
148 Views
Last Modified: 2010-04-03
i am creating a website in flash MX which reads data from an xml file. the xml file contains a list of news article titles. the problem i face is this:-

some of the news articles have html formatting tags in them (like <br>, <u>, <a href> etc.) except for the underline tag, none of the other html tags work. the bold and italic tags appear as actual text. the anchor tag does not show at all. what should i do?
0
Comment
Question by:RTKHOT
10 Comments
 
LVL 39

Accepted Solution

by:
blue-genie earned 34 total points
ID: 12235867
have you set ur textfield to render text as html?

textfieldnamel.html = true;
0
 
LVL 7

Expert Comment

by:ssdesign
ID: 12236251
can yuo give an example of your XML?
0
 

Author Comment

by:RTKHOT
ID: 12236767
<News_Content>&lt;B&gt;Philadelphia, PA, September 22, 2003 &lt;/B&gt;</News_Content>

this is just an example. i also have italic, and anchor elements emebedded. i tried substituting the &lt; with the xml code (&#60;b&#62;) and also directly as <b>. all 3 did not work.
0
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 6

Assisted Solution

by:nishasrilankan
nishasrilankan earned 33 total points
ID: 12245842
convert the Node value to a string



TextBox.htmlText = XML_Node_Value.toString();
0
 
LVL 6

Expert Comment

by:nishasrilankan
ID: 12245856
var node:XML = new XML("<B><A href='dsd'>test</A></B>");
trace(node.firstChild.toString());

nisha.htmlText = node.firstChild.toString()
0
 
LVL 5

Assisted Solution

by:badrulnm
badrulnm earned 33 total points
ID: 12305223
Will this help?

Based on your example above, change the XML file content:

<News_Content>&lt;B&gt;Philadelphia, PA, September 22, 2003 &lt;/B&gt;</News_Content>

to:

<News_Content><![CDATA[<B>Philadelphia, PA, September 22, 2003 </B>]]></News_Content>
0
 
LVL 6

Expert Comment

by:nishasrilankan
ID: 12306179
Just Remove the CDATA..(Character formatting Tag)
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Action Script commands 3 220
Updating Flash Player with GPO 3 357
High Internet Explorer CPU on Flash site in Citrix 2 839
black magic design 1 130
I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question