If this is just for debugging, use the debug player, trace the XML object, look in your flashlog.txt file.

 

Matt

 


From: Spike [mailto:[EMAIL PROTECTED]
Sent: Friday, March 11, 200512:04 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Need an easy way to dump XML results to a file?

 

Surely you can just output the content of the in either a mx:Text or
mx:TextArea.

If it's coming back as an ActionScript XML object you can use
objName.toString() to convert it to plain text.

something like this:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"
creationComplete="showXML();">
      <mx:Script>
            <![CDATA[
            function showXML():Void {
                  var foo:XML = new XML("<state name=\"California\"><city>San
Francisco
</city></state>");

                  debugOutput.text = foo;
            }
            ]]>
      </mx:Script>
      <mx:TextArea id="debugOutput"/>
</mx:Application>

In your case you should just need to change the code that generates the
var foo.

HTH

Spike

dduuggllaa wrote:
>
> --- In flexcoders@yahoogroups.com, Abdul Qabiz <[EMAIL PROTECTED]> wrote:
>
>>Hi,
>>
>><mx:Model> can not be used on runtime. You can look at FlexBuilder
>
> debugger
>
>>and network monitor, its just super cool....
>>
>>You can also install Mozdev's "Live HTTP Header" extension in
>
> Firefox to see
>
>>the HTTP Header and other data passed while communication to server...
>>
>>Are you talking about a flex app that does this?
>>
>>-abdul
>
>
> Wow. I just assumed this was trivial todo. I had no idea I have to
> jump through so many hoops.
>
> Let me try a different tack. Is there no way to write an object in XML
> to a file on disk? Does the method foo.write("bar.xml") for any object
> not exist?
>
> -Douglass
>
>
>
>
>
>

> Yahoo! Groups Links
>
>
>

>
>
>
>

--

--------------------------------------------
Stephen Milligan
Code poet for hire
http://www.spike.org.uk

Do you cfeclipse? http://cfeclipse.tigris.org


Reply via email to