0 Replies Latest reply on Apr 3, 2007 7:20 AM by Dzihan

    Using a XML namespace globally

    Dzihan Level 1
      Hello all,
      the xml data i receive by a webservice method has a special namespace.
      in every function(!) i want to parse this xml by e4x statemtens i have to declare to use this namespace.
      for this reason i now define it in every class i use (not very elegant and unhandy).

      public class myClass extends Grid {
      namespace myNamespace= " http://com.xxx.myApp.core.services";


      private function myFunc():void
      use namespace myNamespace;

      So, is there a way to make every function in every class of my app automatically use this namespace that i define somewhere in a single place?

      Would be great if somebody has an idea. Thx.