# Unable to play flv from xml though the xml loads perfectly fine

**URL:** <https://forum.kirupa.com/t/unable-to-play-flv-from-xml-though-the-xml-loads-perfectly-fine/253108>\
**Category:** Uncategorized\
**Created:** [February 27, 2008, 6:57am UTC](https://forum.kirupa.com/t/unable-to-play-flv-from-xml-though-the-xml-loads-perfectly-fine/253108 "2008-02-27T06:57:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lovejeet](https://avatars.discourse-cdn.com/v4/letter/l/977dab/32.png) [@lovejeet](https://forum.kirupa.com/u/lovejeet)\
**Post date:** [February 27, 2008, 6:57am UTC](https://forum.kirupa.com/t/unable-to-play-flv-from-xml-though-the-xml-loads-perfectly-fine/253108/1 "2008-02-27T06:57:45Z")

</div>

I am **unable to play flv from xml though the xml loads perfectly fine**. When flv path is hardcoded the video plays fine but when from a node it seems to make the video disappear and it dosent play…  
Please can anyone help me with this…  
here is the code.

I am having the same issue i got the xml loaded and even the url into the video source but it dosen’t seems to play the video when reading from xml…  
please let me know what i can do to correct this…  
thanks in advance…  
here is the code.  
var urlname:String;  
function loadXml() {  
urlname = content.firstChild.childNodes[0].firstChild;  
//trace(urlname);  
videoload();  
}  
content = new XML();  
content.ignoreWhite = true;  
content.load(“one.xml”);  
content.onLoad = loadXml;  
function videoload() {  
var connection\_nc:NetConnection = new NetConnection();  
connection\_nc.connect(null);  
var stream\_ns:NetStream = new NetStream(connection\_nc);  
stream\_ns.setBufferTime(4);  
my\_video.attachVideo(stream\_ns);  
//playing the video.  
//stream\_ns.play(“video/intel.flv”);/_displays a black bg but video not played_/  
stream\_ns.play(urlname);  
//trace(stream\_ns);  
trace(urlname);  
}  
//  
stop();

this is the xml  
\<content\>  
\<cvname\>video/vid.flv\</cvname\>  
\<content\>

Thanks In advance.
