[Flashcoders] CDATA whitespace issue

2008-10-16 Thread Allandt Bik-Elliott (Receptacle)
hi folks i'm writing some xml for my site to load in content and, because i want to use html, i'm using cdata in my description nodes. The problem is that if i do the following: [xml] ?xml version=1.0 encoding=UTF-8? site blog /blog portfolio carousel

Re: [Flashcoders] CDATA whitespace issue

2008-10-16 Thread Cedric Muller
I don't have the answer, but since you are using html, can't you just add br instead of linebreaks ? p class=headingHeading/pbrpDescription from xml./p Sometimes, I strip linebreaks from the text I parse in xml, but by doing this, you have to know for sure when you can apply such

Re: [Flashcoders] CDATA whitespace issue

2008-10-16 Thread Allandt Bik-Elliott (Receptacle)
hey cedric - thanks for your response the linebreaks are purely aesthetic, to make it easier to write directly in the xml doc but, as you say, they could be stripped (i'm using p tags already but the net result is the same). I'm really just seeing how far i can go in my xml - the first

Re: [Flashcoders] CDATA whitespace issue

2008-10-16 Thread Cedric Muller
:) yes I know, I am facing the exact same problem. I love best-case scenarios, but with xml I couldn't achieve the first option, unless rendering the xml from a cms. cedric hey cedric - thanks for your response the linebreaks are purely aesthetic, to make it easier to write directly in

Re: [Flashcoders] CDATA whitespace issue

2008-10-16 Thread Allandt Bik-Elliott (Receptacle)
:D thanks mate On 16 Oct 2008, at 14:44, Cedric Muller wrote: :) yes I know, I am facing the exact same problem. I love best-case scenarios, but with xml I couldn't achieve the first option, unless rendering the xml from a cms. cedric hey cedric - thanks for your response the

RE: [Flashcoders] CDATA whitespace issue

2008-10-16 Thread Keith Reinfeld
Is there any way (like the old ignoreWhite param), that i can get as3 to strip the extra tabs and linebreaks (even within CDATA)? Allandt, Have you tried: TextField.condenseWhite = true; ? Regards, -Keith http://keithreinfeld.home.comcast.net

Re: [Flashcoders] CDATA whitespace issue

2008-10-16 Thread Steven Sacks
http://www.stevensacks.net/2008/07/02/parsing-xhtml-with-e4x-in-as3/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] CDATA whitespace issue

2008-10-16 Thread Steven Sacks
And derivatively, a way to grab the entire contents of a node as one big string: http://www.gaiaflashframework.com/index.php/topic,918.0.html ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com