That's probably the code in LiteralEmitter. You're welcome to try to fix it.

Sent from my LG G3, an AT&T 4G LTE smartphone

------ Original message------
From: Harbs
Date: Tue, May 31, 2016 4:15 AM
To: dev;
Subject:[FalconJX]Compilation error in XML

The following XML does not compile correctly:
private var xml : XML =<root title="That's Entertainment">
        <node title="My Music">
                <node title="Language and Perspective" artist="Bad Suns">
                        <node title="Matthew James" length="3:24"/>
                        <node title="We Move Like the Ocean" length="3:56"/>
                        <node title="Cardiac Arrest" length="3:15"/>
                </node>
                <node title="Strange Desire" artist="Bleachers">
                        <node title="Wild Heart" length="4:15"/>
                        <node title="Rollercoaster" length="3:39"/>
                        <node title="Shadow" length="3:46"/>
                        <node title="I Wanna Get Better" length="4:23"/>
                </node>
        </node>
        <node title="My Books">
                <node title="Wizard of Oz">
                        <node title="So this is Kansas?" length="82"/>
                        <node title="A Might Dusty Here" length="63"/>
                        <node title="Is that a Tornado?" length="103"/>
                </node>
                <node title="Favorite Book #2">
                        <node title="Chapter 1" length="15"/>
                        <node title="Chapter 2" length="86"/>
                        <node title="Chapter 3" length="104"/>
                        <node title="Chapter 4" length="99"/>
                </node>
        </node>
</root>;

It gets compiled to:

  this.xml = new XML( "<root title="That's Entertainment">\
\t<node title="My Music">\
\t\t<node title="Language and Perspective" artist="Bad Suns">\
\t\t\t<node title="Matthew James" length="3:24"/>\
\t\t\t<node title="We Move Like the Ocean" length="3:56"/>\
\t\t\t<node title="Cardiac Arrest" length="3:15"/>\
\t\t</node>\
\t\t<node title="Strange Desire" artist="Bleachers">\
\t\t\t<node title="Wild Heart" length="4:15"/>\
\t\t\t<node title="Rollercoaster" length="3:39"/>\
\t\t\t<node title="Shadow" length="3:46"/>\
\t\t\t<node title="I Wanna Get Better" length="4:23"/>\
\t\t</node>\
\t</node>\
\t<node title="My Books">\
\t\t<node title="Wizard of Oz">\
\t\t\t<node title="So this is Kansas?" length="82"/>\
\t\t\t<node title="A Might Dusty Here" length="63"/>\
\t\t\t<node title="Is that a Tornado?" length="103"/>\
\t\t</node>\
\t\t<node title="Favorite Book #2">\
\t\t\t<node title="Chapter 1" length="15"/>\
\t\t\t<node title="Chapter 2" length="86"/>\
\t\t\t<node title="Chapter 3" length="104"/>\
\t\t\t<node title="Chapter 4" length="99"/>\
\t\t</node>\
\t</node>\
</root>");

Note that the quotes are not properly escaped which causes the string to be 
terminated prematurely.

Reply via email to