Descendants matches tags with the same name on different levels. : Descendants : XML Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » XML » Descendants »

 

Descendants matches tags with the same name on different levels.


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){

        var foo:XML = <a>
                         <b>
                            <c>
                               <b>foo</b>
                            </c>
                         </b>
                      </a>;
        trace(foo..b.toXMLString());

    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo XML
» Descendants