# Namespaces question

**URL:** <https://forum.kirupa.com/t/namespaces-question/295907>\
**Category:** Uncategorized\
**Created:** [September 7, 2009, 8:43am UTC](https://forum.kirupa.com/t/namespaces-question/295907 "2009-09-07T08:43:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lone\_wolf](https://avatars.discourse-cdn.com/v4/letter/l/839c29/32.png) [@Lone\_wolf](https://forum.kirupa.com/u/Lone_wolf)\
**Post date:** [September 7, 2009, 8:43am UTC](https://forum.kirupa.com/t/namespaces-question/295907/1 "2009-09-07T08:43:27Z")

</div>

Can anyone help me out with this one?

i’m passing a xml from my flex app to a loaded Flash swf.  
I’m trying to get the data from the xml using e4x. But I can’t seem to get this trace to show what I want… The problem is the namespaces I think. Anyone here who can help me out with this?

```auto

stop();

var tempuri:Namespace = new Namespace("http://tempuri.org/");
var shemas:Namespace = new Namespace("http://schemas.xmlsoap.org/soap/envelope/");
var w3:Namespace = new Namespace("http://www.w3.org/2001/XMLSchema-instance");
var w32:Namespace = new Namespace("http://www.w3.org/2001/XMLSchema");

var vb:XML = <projectvisual xmlns="http://tempuri.org/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
        <visual>
          <visual_link>lnk1</visual_link>
          <visual_type>img</visual_type>
          <visual_description>this is text n1</visual_description>
        </visual>
        <visual>
          <visual_link>link2</visual_link>
          <visual_type>img</visual_type>
          <visual_description>dit is text 2</visual_description>
        </visual>
        <visual>
          <visual_link>link3</visual_link>
          <visual_type>vid</visual_type>
          <visual_description>dit is een filmpje</visual_description>
        </visual>
      </projectvisual>

function testFunction():void{
    vb.addNamespace(tempuri);
    vb.addNamespace(shemas);
    vb.addNamespace(w3);
    vb.addNamespace(w32);
    
    
    trace(" testing...");    
    trace("----------------------");
    trace(vb.visual.visual_link);
    trace("----------------------");
    
}

testFunction();

```
