ok I can't explain it exactly... but bottom line is... when you drag the one item in... for example

<tag att1="v1" att2="v2"/>

and the output will be blank... but if you do

<tag att1="v1" att2="v2"/>
<tag att1="v3" att2="v4"/>

the output is going to be

<tag att1="v1" att2="v2"/>
<tag att1="v3" att2="v4"/>

simply because it's not a root node because there are 2 of them... just put the 1 tag in and it will make that the root node inside the variable.

Read the documentation about XML

if you do this

var my_xml:XML = <tag att1="v1" att2="v2"/><tag att1="v3" att2="v4"/>;

you can access those tags by simply doing "my_xml.tag" and to access the attributes you do "[EMAIL PROTECTED]"... however if you do

var my_xml:XML = <tag att1="v1" att2="v2"/>;

it will make that the root node and "[EMAIL PROTECTED]" will not work instead you do "[EMAIL PROTECTED]"

again like I said :p .... Read the documentation about XML


On 05/08/06, Rick Root <[EMAIL PROTECTED]> wrote:

sinatosk wrote:
>
> hmm... that shouldn't happen... so I'm gonna guessing it's something to
> do with the way you coded it. Can you post the code that outputs the
> text to the textarea? if so... post it please

Right click on the flex app and view source.


__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to