Yes we can :)
Do the same with the brackets but leave off the quotes on your attributes.

var lastname:String="hair";
var result:XML =
 <response>
   <value name={'keith '+lastname}>{Math.random() }</value>
</response>;


-- Keith H --
www.keith-hair.net



Richard Rodseth wrote:
>
> I'm finding it helpful when generating data in mock services, to use 
> literal XML with {} expressions, like this:
>
> var result:XML =
>  <response>
>    <value name="foo">{Math.random() }</value>
> </response>
>
> Is there a way to use expressions for the attribute values as well, or 
> must I use the XML API to set them?
>
>
>  


Reply via email to