Parse an XML file through actionscript

Howdy folks, I’ve been searching around for a few days now, and I’m trying to find a way to remove a line of XML through actionscript.

Background: I’m using an Infopath form that a user will fill out to create an XML document, which is then plugged into a flash file and will build a template based on what they selected.

The XML File:

<?xml version="1.0" encoding="UTF-8"?>
**<?mso-infoPathSolution solutionVersion="" productVersion="11.0.6565" PIVersion="" href="**[**file:///C:\Documents%20and%20Settings\ufsa\My%20Documents\Template4.xsn**](file:///C:\Documents%20and%20Settings\ufsa\My%20Documents\Template4.xsn)**" name="urn:schemas-microsoft-com:office:infopath:Template4:" language="en-us" ?>**
<dataroot generated="2006-09-25T15:24:01" xmlns:xsi="[" xmlns:od="urn:schemas-microsoft-com:officedata" xmlns:xd="[URL=""]](">

the bolded line is where i’m getting snagged up. If it is manually removed, everything works fine. However manually removing it will end up being a PITA for the end user.

Here is the actionscript used:

public function ripXML(my_xml:XML){
my_xml.ignoreWhite = true;
// extract first node to loop through
var tmpNode:XMLNode = my_xml.firstChild.firstChild;
// temp vars for the background movie;
// loop through children(modules)
for(var xm:XMLNode = tmpNode.firstChild;xm!=null;xm=xm.nextSibling){
// check for title
if(xm.nodeName == "course_title"){
courseTitle = xm.firstChild.toString();
if(xm.nodeName == "course_color"){
courseColor = Number(xm.firstChild.toString())
if(xm.nodeName == "is_testing"){
if(xm.firstChild.toString() == 1){
_root.isTesting = true;
_root.isTesting = false;
if(xm.nodeName == "course_img"){
courseImg = xm.firstChild.toString();
if(xm.nodeName == "modules"){
// add new module to the modules_arr
var tmpModule:Module = new Module(xm);

Any help you could provide would be great.