Trying to convert a mixed element into a string results in a formatted XML string as output : Data type : XML Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » XML » Data type »

 

Trying to convert a mixed element into a string results in a formatted XML string as output


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var fruit:XML = <fruit>
                            <name>Apple</name>
                            An apple a day...
                          </fruit>;
        
        var value:String = fruit.toString(  )
        
        tracevalue );
    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo XML
» Data type