[Flashcoders] html in XML

2007-06-09 Thread promo+biboune.net
hi there i am having trouble to parse Html tags in a Xml file that is loaded in a flash file can anyone help here is the XML ?xml version=1.0 encoding=UTF-8 ? icons icon image=gif/images.gif tooltip=tooltip content= here i want to have HTML tags like a href=somewhere.comclick here to go

Re: [Flashcoders] html in XML

2007-06-09 Thread Latcho
Hi there, It's a restriction in XML that you cannot have markop, nor the open-angle bracket in an attribute value. or ; If you really want to use the attribute you have to escape the content, and unescaope while parsing in flash. W3.org: The ampersand character () and the left angle

RE: [Flashcoders] html in XML

2007-06-09 Thread David Ngo
=somewhere.comclick here to go somewhere/a]]/content /icon /icons -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of promo+biboune.net Sent: Saturday, June 09, 2007 10:20 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] html in XML hi there i am

Re: [Flashcoders] html in XML

2007-06-09 Thread promo+biboune.net
here to go somewhere/a]]/content /icon /icons -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of promo+biboune.net Sent: Saturday, June 09, 2007 10:20 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] html in XML hi there i am having

Re[2]: [Flashcoders] html in XML

2007-06-09 Thread R�kos Attila
CDATA elements cannot be placed inside attributes. In attributes you can escape special characters with entities like gt; = lt; = amp; = quot; = But storing long texts in attributes seems to be not the best solution. If you use an XML handling library for creating your XML, you

Re: [Flashcoders] html in XML

2007-06-09 Thread Muzak
?xml version=1.0 encoding=UTF-8 ? icons icon image=gif/images.gif tooltip=tooltip ![CDATA[HTML content here/a]] /icon /icons hi there i am having trouble to parse Html tags in a Xml file that is loaded in a flash file can anyone help here is the XML ?xml version=1.0 encoding=UTF-8 ?

RE: [Flashcoders] HTML in XML

2006-08-11 Thread Paul Venton
: Re: [Flashcoders] HTML in XML this advice is all crazy talk. the proper way to do it is to use CDATA tags. On Aug 9, 2006, at 12:04 PM, Ryan Potter wrote: Another way that works pretty well is to do a join on the child nodes. So your trace would look like this: trace(newsNode.childNodes[i

Re: [Flashcoders] HTML in XML

2006-08-09 Thread Geoff Stearns
you just need to put the html content inside a cdata tag: newsitem date=8/5/2006 headline=Some headline![CDATA[ Body of the news article. a href=http://www.google.com;Google/a More body of the article/newsitem newsitem date=8/1/2006 headline=Another headlineBody of the second article

[Flashcoders] HTML in XML

2006-08-09 Thread Lucy Thomson
August 2006 15:22 To: Flashcoders mailing list Subject: Re: [Flashcoders] HTML in XML you just need to put the html content inside a cdata tag: newsitem date=8/5/2006 headline=Some headline![CDATA[ Body of the news article. a href=http://www.google.com;Google/a More body of the article/newsitem

RE: [Flashcoders] HTML in XML

2006-08-09 Thread Ryan Potter
] [mailto:[EMAIL PROTECTED] On Behalf Of Lucy Thomson Sent: Wednesday, August 09, 2006 9:56 AM To: Flashcoders mailing list Subject: [Flashcoders] HTML in XML Yep use cdata tags, except I think you have 2 nodes there, so open and close them within each one. They basically tell flash to treat everything

[Flashcoders] HTML in XML

2006-08-08 Thread Burns, John D
I'm having a very weird problem and I'm hoping it's something simple that I'm overlooking. I have an xml document similar to this: news newsitem date=8/5/2006 headline=Some headlineBody of the news article. a href=http://www.google.com;Google/a More body of the article/newsitem newsitem

Re: [Flashcoders] HTML in XML

2006-08-08 Thread Ian Thomas
Hi John, The actual internal structure of the XML comes out as follows: news +-- newsitem |+-- TEXT NODE (Body of the news article.) |+-- a | | +-- TEXT NODE (Google) |+-- TEXT NODE (More body of the news article.) +-- newsitem etc. (I hope the formatting comes out) As you

Re: [Flashcoders] HTML in XML

2006-08-08 Thread ryanm
As you can see, you have to iterate through all the children of newsitem, rather than just using the firstchild. newsNode.childNodes[i].firstChild.nodeValue.toString() should work also, since it would render the node and all of its children as a string. ryanm

Re: [Flashcoders] HTML in XML

2005-12-07 Thread erixtekila
Le 6 déc. 05, à 19:20, Mike Boutin a écrit : I am bring in some html text to show in flash in an xml file like this: description id=0 title![CDATA[bpicture 0/b]]/title /description When i trace it back in flash, it shows up like this: lt;bgt;picture 0lt;/bgt; Isn't it the expected

Re: [Flashcoders] HTML in XML

2005-12-07 Thread Sander Janssens
Make sure your XML document is in Unicode. I use Unicode-8, but our ASP pages write Unicode-16. You don¹t need any CDATA tags. I have XHTML info bubbles with CSS and images; text is like this: bubble id=0 p class='titel'Network Address Translation/pbr/ pNAT or Network Address

Re: [Flashcoders] HTML in XML

2005-12-07 Thread JOR
You want to use .nodeValue when accessing CDATA or the data will be escaped. JOR ___ === James O'Reilly === === SynergyMedia, Inc. === www.synergymedia.net Mike Boutin wrote: I am bring in some html text to show in flash in an xml file like this:

[Flashcoders] HTML in XML

2005-12-06 Thread Mike Boutin
I am bring in some html text to show in flash in an xml file like this: description id=0 title![CDATA[bpicture 0/b]]/title /description When i trace it back in flash, it shows up like this: lt;bgt;picture 0lt;/bgt; How can I keep it show it shows the html tags because it wont show up