topicTree.dataProvider=xmlFile
Where the xmlFile is the string generated and returned from a CFC.
There were two problems here. The first was that the whitesapce was
fromt he typical CF source. The ugly hack to get around that was to
put every piece of code involved in generating the xml on the SAME
line. Very ugly, but effective. cfsetting cfoutputonly didn't seem to
have an effect here.
The second problem ahs to be condered a bug in Flash tree component.
It interpreted the <?xml ...> at the head of the file as DAT. Once
that was stripped out everything worked fine.
On Sat, 27 Dec 2003 09:04:59 -0500, you wrote:
>are you using
>
>XML.ignoreWhite = true
>
>in your Flash code before you call load()?
>
>
>
>-----Original Message-----
>From: Dave Watts [mailto:[EMAIL PROTECTED]
>Sent: Fri 12/26/2003 9:13 PM
>To: CF-Talk
>Cc:
>Subject: RE: toString(CFXML Object) produces grunches of whitespace
>
>
>> I am trying to return n XML formatted tre to Flash (for use by A Tree
>> component). Flash really doens't like extraneous whitespace. I am
>> generating the XML using CFXML then transmitting the XML from a CFC
>> using toString(CFXMLObject). When I view the file is has boatloads of
>> empty lines in it which confuses Flash brain dead parser.
>>
>> Why does toString produce white space? The object doesn't have empty
>> nodes in it (as seen from a CFDump). How can I get rid of this
>> whitespace?
>
>I don't really know too much about the internals of XML document objects in
>CF, but my suspicion is that the whitespace is created when you include
>whitespace in your CFXML tag. You could remove the whitespace there, or you
>could parse it out after the fact by getting rid of any whitespace between
>">" and "<" characters.
>
>Dave Watts, CTO, Fig Leaf Software
>http://www.figleaf.com/ <http://www.figleaf.com/>
>voice: (202) 797-5496
>fax: (202) 797-5444
> _____
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

