# XML works locally but not on server

**URL:** <https://forum.kirupa.com/t/xml-works-locally-but-not-on-server/259951>\
**Category:** flash\
**Created:** [May 10, 2008, 8:43pm UTC](https://forum.kirupa.com/t/xml-works-locally-but-not-on-server/259951 "2008-05-10T20:43:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![spidadesign](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@spidadesign](https://forum.kirupa.com/u/spidadesign)\
**Post date:** [May 10, 2008, 8:43pm UTC](https://forum.kirupa.com/t/xml-works-locally-but-not-on-server/259951/1 "2008-05-10T20:43:12Z")

</div>

I get this error when I try to create an swf for this scroller. Using Flash 8

**Error** Scene=Scene 1, layer=Controls\_01, frame=1:Line 34: Syntax error.  
TextField01 += chr(13) add chr(13);

Total ActionScript Errors: 1 Reported Errors: 1

* * *

**CODE FRAME 1**

```auto

var strLg = "EN";
var noPage = 1;

if (getTimer() < 6000) 
{
    xml1 = new XML();    
    xml1.onLoad = myOnLoad;
    xml1.load("news.xml");
}

function myOnLoad (success) {
    if (success)
    {
        TextField01 = "";
        loadTxtBox(strLg, noPage);    
    }
}

function loadTxtBox(lg, no)
{
    var i = 0;
    var j = 0;
    while (i < xml1.firstChild.childNodes.length)
    {
        
        if (((xml1.firstChild.childNodes*.attributes.lg) == lg) && ((xml1.firstChild.childNodes*.attributes.no) == no))
        {
            j = 0;
            while (j < xml1.firstChild.childNodes*.childNodes.length)
            {
                if (xml1.firstChild.childNodes*.childNodes[j].nodeName != null)
                {
                    TextField01 += xml1.firstChild.childNodes*.childNodes[j].toString();
                    TextField01 += chr(13) add chr(13);
                }    
                j ++;
            }
            break;
        }

        i ++;
    }
}

```

\*\*  
XML CODE BELOW\*\*

```auto

<mainTxtBox><page lg="EN" no="1">
<title><font size="15" color="#ffffff">09/01/06 <b>Acclaim Film & TV Writing</b></font></title><br>Spring Pilot Competition<br>Finalist for "Being Frank"<br><br>
<title><font size="15" color="#ffffff">06/30/06 <b>PAGE Writing Awards</b></font></title><br>Screenwriting Competition<br>"Being Frank" Pilot to the Quarterfinals<br><br>
<title><font size="15" color="#ffffff">06/21/06 <b>CBS Diversity Institute</b></font></title><br>Network Staff Writing Position<br>"Entourage" Spec Script to 3rd Round<br><br>
<title><font size="15" color="#ffffff">05/04/06 <b>Snapped</b></font></title><br>Film Screening<br>Lead in School of Visual Arts Film<br><br>
<title><font size="15" color="#ffffff">12/01/05 <b>Best Drama Feature Film</b></font></title><br>Stray Cat in Brooklyn<br>NY Film & Video Festival Award<br><br>
<title><font size="15" color="#ffffff">11/17/05 <b>Stray Cat</b></font></title><br>Film Screening: NY Film & Video Festival<br>Lead Role<br><br>
<title><font size="15" color="#ffffff">11/10/05 <b>Stray Cat</b></font></title><br>Film Screening: Lower East Side Film Festival<br>Lead Role<br><br>
<title><font size="15" color="#ffffff">09/13/05 <b>AFTRA</b></font></title><br>TV & Radio Artists' Union<br>Membership Accepted<br><br>
</page></mainTxtBox>

```

---

<div class="post-metadata">

**Author:** ![natronp](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@natronp](https://forum.kirupa.com/u/natronp)\
**Post date:** [May 12, 2008, 2:37am UTC](https://forum.kirupa.com/t/xml-works-locally-but-not-on-server/259951/2 "2008-05-12T02:37:08Z")

</div>

what are you trying to do with this line:

```auto
add chr(13);

```

??
