XML.ignoreWhite = true;
XML.load
- Original Message -
From: david kraftsow [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Tuesday, January 24, 2006 4:34 PM
Subject: [Flashcoders] xml whitespace problem
Hi.
Whats the easiest way to strip out that
yeah that does nothing. you would think it would solve the problem but no...
JesterXL wrote:
XML.ignoreWhite = true;
XML.load
- Original Message -
From: david kraftsow [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Tuesday, January 24, 2006
JesterXL wrote:
XML.ignoreWhite = true;
XML.load
In response but
david kraftsow wrote:
Setting the ignoreWhite property does nothing.
Bad Jesse! No cookie!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
I've never seen that before. How is the XML being generated? Manual or dynamic?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Everything within a CDATA is read exactly as is, I believe -- that's the
point of using it. whitespace is the whitespace between tags, not
within a CDATA text node, so ignoreWhite shouldn't affect it. I think
you'll have to butt your text content up against the [ and ] to make it
read right.
i thought that could be the case too.. but then i took the CDATA
brackets completely out but left the text.. so its just a floating text
node now. it still does the same thing.. =(
Helen Triolo wrote:
Everything within a CDATA is read exactly as is, I believe -- that's
the point of using it.
PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Helen Triolo
Sent: Tuesday, January 24, 2006 4:59 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] xml whitespace problem
Everything within a CDATA is read exactly as is, I believe -- that's
the
point of using it. whitespace
PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of david kraftsow
Sent: Tuesday, January 24, 2006 5:01 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] xml whitespace problem
manually.. i typed it by hand in dreamweaver and added the tabs and
returns for readability.
John
you could try setting condenseWhite = true on the textfield that should get
rid of the whitespace due to the linebreaks.
dunc
On 1/24/06, david kraftsow [EMAIL PROTECTED] wrote:
i thought that could be the case too.. but then i took the CDATA
brackets completely out but left the text.. so
I suspect it's some unwarranted charset sticking some unknown line breaks.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Thanks all. I think I figured out the problem..
this xml causes the spaces:
root_1 attr_1=blahblah
node_1
Leaf content 1 blah blah blah.
/node_1
/root_1
but this doesnt:
root_1 attr_1=blahblah
node_1Leaf content 1 blah blah blah./node_1
/root_1
I guess that should
I had this exact problem just last week. I couldn't figure out a
solution, so I simply removed all carriage returns and tabs from the
raw XML data. Here's the function that I wrote to clean things up.
Simply add on onData event handler to your XML loading and then call
this function
Nice. condenseWhite does work but only if you are just using the xml
content in a text field. For my purposes I needed to do conditional
stuff based on the xml -- no text fields involved -- so I had to have
the exact strings.
Josh Gormley wrote:
I had this exact problem just last week. I
13 matches
Mail list logo