I'm having the same issue even without XPATH, I have a CDATA section in my XML 
and the text field renders the text and the HTML tags without rendering HTML, 
if I cut and paste the HTML to a string and set the text field to that it works 
as expected.  I've done this before and it worked, difference now is I'm 
compiling with MTASC and using flash 8 IDE.  I'm going to try a standalone fla 
test and compile with MM compiler and flash 7 to see what the issue is.

Grant

----- Original Message -----
From: Merrill, Jason [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: 12/7/05 1:56 PM
Subject: [Flashcoders] Xpath and HTML tags inside XML bug?

> Searched Google, no dice, when the chattyfig servers were down again, I
> turned to Flexcoders, no luck either.  Anyone who has experience with
> Xpath, I hope you can help.
> 
> Problem overview: using Xpath, HTML tags inside of XML does not render,
> even with CDATA tags applied.
> 
> Problem detail: I am using xfactorstudios' Xpath classes to bring in XML
> node data which contains text and HTML tags to display in a Flash text
> area component in the Flash 7 player.  Here is a snippet of the XML:
> 
>    
>             
> http://www.fda.gov/cdrh/'>Center
> for Devices of Radiological Health. More text...]]>
>       
>    
> 
> The text area component IS set to HTML=true, but when it renders, it
> shows the text plus the HTML:
> 
>    Welcome to the Center for Devices
> of Radiological Health. More text...
> 
> Does the same thing with a regular dynamic text field.  If I hard code
> the same string directly in the .fla, it renders properly in the text
> field and/or component. The string from XPath returns, interestingly
> enough, looks like this:
> 
>    Welcome to the <a
> href='http://www.fda.gov/cdrh/'>Center for Devices of
> Radiological Health</a>. More text...
> 
> Not sure why Xpath is changing the string from "". to "</a>",
> but Flash doesn't like it obviously.  Anyone come across this before and
> have a solution?
> 
> Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com
> 
> 
> 
> 
> 
> NOTICE:
> This message is for the designated recipient only and may contain privileged 
> or confidential information. If you have received it in error, please notify 
> the sender immediately and delete the original. Any other use of this e-mail 
> by you is prohibited.
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to