Flash not picking up flashvars

I have a movie that loads content from an XML file. The path to the file is passed in using flashvars. I am using SWFObject to embed the Flash in a web page. I have a routine that checks for an XML attribute from flashvars and if available passes it to a variable; if no XML attribute then it uses a default. Because I’m having trouble with flashvars I’m also displaying the path in a text box. The code looks like this:

 
var flashvarField:TextField = new TextField();
flashvarField.x = 200;
flashvarField.y = 360;
flashvarField.width = 250;
if (root.loaderInfo.parameters["xml"] != null) {
 xmlURL = root.loaderInfo.parameters["xml"];
 flashvarField.text = xmlURL;
 addChild(flashvarField);
}
else {
 xmlURL = "http://usilws98.ca.com/us/xml/services.aspx";
 flashvarField.text = "No flashvars present, using default: " + xmlURL;
 addChild(flashvarField);
}

I then generated the HTML from a SWFObject generator. That code looks like this:

 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
 <head>
  <title></title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <script type="text/javascript" src="C:\Software\swfobject\swfobject\swfobject.js"></script>
  <script type="text/javascript">
   var flashvars = {};
   flashvars.xml = "http://usilws98.ca.com/us/xml/services.aspx";
   var params = {};
   params.quality = "high";
   params.scale = "noscale";
   params.wmode = "transparent";
   params.bgcolor = "#FFFFFF";
   params.allowfullscreen = "true";
   params.allowscriptaccess = "always";
   var attributes = {};
   swfobject.embedSWF("ServicesMain.swf", "main", "1004", "419", "10.0.0", "expressInstall.swf", flashvars, params, attributes);
  </script>
 </head>
 <body>
  <div id="main">
   <a href="http://www.adobe.com/go/getflashplayer">
    <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
   </a>
  </div>
 </body>
</html>

As you can see I have defined the XML attribute for flashvars in this HTML file. Unfortunately when I launch this file I always get the “No flashvars present, using default” message. Any ideas as to what I’m doing wrong here?