# Fetching URL from xml file

**URL:** <https://forum.kirupa.com/t/fetching-url-from-xml-file/289162>\
**Category:** Uncategorized\
**Created:** [May 27, 2009, 2:22am UTC](https://forum.kirupa.com/t/fetching-url-from-xml-file/289162 "2009-05-27T02:22:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tedri\_Mark](https://avatars.discourse-cdn.com/v4/letter/t/51bf81/32.png) [@Tedri\_Mark](https://forum.kirupa.com/u/Tedri_Mark)\
**Post date:** [May 27, 2009, 2:22am UTC](https://forum.kirupa.com/t/fetching-url-from-xml-file/289162/1 "2009-05-27T02:22:42Z")

</div>

Hey there,an easy peasy question for you all I managed to do this before in flash 8, but the was to go about it in CS3 seems to have changed.

This is what I have at the moment:

```auto
{
                    
var request:URLRequest = new URLRequest("http://www.google.com");
try {
  navigateToURL(request, '_blank'); // second argument is target
} catch (e:Error) {
  trace("Error occurred!");
}

```

Which obviously opens up google in a new tab. What I want instead is instead of opening up google, to open up the url between the \<url\> tags in the xml file.

I’ve tried to read up and figure it out but to no avail…

Can anyone help?
