Compare two xml variable : Equality : XML Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » XML » Equality »

 

Compare two xml variable


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var msg1:XML = <GREETING>
            <TO>A</TO>
            <FROM>Programmer</FROM>
            <MESSAGE>Hello</MESSAGE>
          </GREETING>;
        
        var msg2:XML = <GREETING>
            <TO>A</TO>
            <FROM>Programmer</FROM>
            <MESSAGE>Hello</MESSAGE>
          </GREETING>;
        
        trace(msg1.* == msg2.*);  // Displays: true



    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo XML
» Equality