# XML namespace problem

**URL:** <https://forum.kirupa.com/t/xml-namespace-problem/231044>\
**Category:** flash\
**Created:** [July 1, 2007, 4:03pm UTC](https://forum.kirupa.com/t/xml-namespace-problem/231044 "2007-07-01T16:03:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![psych](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/psych/32/2839_2.png) [@psych](https://forum.kirupa.com/u/psych)\
**Post date:** [July 1, 2007, 4:03pm UTC](https://forum.kirupa.com/t/xml-namespace-problem/231044/1 "2007-07-01T16:03:57Z")

</div>

I am trying to get value of ‘title’ attribute from the following xml:

```auto
<?xml version="1.0"?>
<smil xmlns="http://www.w3.org/2001/SMIL20/Language" xmlns:rn="http://features.real.com/2001/SMIL20/Extensions">

    <head>
     <meta name="base" content="../01_Uvod_01/" />
    </head>
  
  <body>
     <par title="Uvod u otvoreno racunarstvo">
     </par>
  </body>
  
</smil>

```

using the E4X sintax with the following AS 3.0 code:

```auto
var myXML:XML = new XML();
var XML_URL: String = "example.exl"
var myXMLURL:URLRequest = new URLRequest(XML_URL);
var myLoader:URLLoader = new URLLoader(myXMLURL);
                        
myLoader.addEventListener(Event.COMPLETE, xmlLoaded);
                                               
function xmlLoaded (eventObj:Event):void{
myXML = new XML(myLoader.data);
trace ("XML Loaded");
trace(body.par.@title);
}

```

but that works only if my input ‘example.xml’ file is without namespace attribute in it like this:

```auto
<smil>

    <head>
     <meta name="base" content="../01_Uvod_01/" />
    </head>
  
  <body>
     <par title="Uvod u otvoreno racunarstvo">
     </par>
  </body>
  
</smil>

```

The problem is that i have to parse the input file the way it is (with namespace attribute in it) but i don’t know what’s the problem and why can’t i parse it this way? Can someone please help?

thank you
