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
You won't be able to put special characters within attribute elements of a node. Instead, place it within a CDATA node: ?xml version=1.0 encoding=UTF-8 ? icons icon image=gif/images.gif tooltip=tooltip content![CDATA[here i want to have HTML tags like a

Re: [Flashcoders] html in XML

2007-06-09 Thread promo+biboune.net
well i tried this but it does not work either ?xml version=1.0 encoding=UTF-8 ? icons icon image=gif/guillaume.gif tooltip=tooltip content=![CDATA[ a href=http://www.google.com;link/a ]] / /icons any idea?? thanlks for your help jeanphy Le 07-06-09 à 11:00, David Ngo a écrit : 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

RE: [Flashcoders] HTML in XML

2006-08-09 Thread Ryan Potter
of the second article ]]/newsitem -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geoff Stearns Sent: 09 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

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: