Create the XML structure with a string : XML Object : XML Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » XML » XML Object »

 

Create the XML structure with a string


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var str:String = "<gamescore><username>username </username>"
                       "<score>111</score></gamescore>";
        
        // Pass the string to the constructor to create an XML object
        var example:XML = new XMLstr );
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo XML
» XML Object