Problem initialising XMLList from String
I have the following string:
var doc:String = '<node label="Mike" rid="1" parent="" transtype="" category="film" family="mobiles" defaulttariffid="3232" recordtype="Asset" description="This is the test" ruleofferid="" initPrice="10.0" recurPrice="15.0" transtype="" rule="" sellable="true" termPrice="">
<node label="MikeT" rid="10" parent="1" transtype="" category="film" family="mobiles" defaulttariffid="3232" recordtype="Service Line" description="This is the test" ruleofferid="2" initPrice="10.0" recurPrice="15.0" transtype="" rule="Is Mutually Exclusive with" sellable="true" termPrice="">
<node label="James" rid="2" parent="10" transtype="" category="film" family="mobiles" defaulttariffid="" recordtype="Asset" description="This is the test" ruleofferid="10" initPrice="10.0" recurPrice="15.0" transtype="" rule="Is Mutually Exclusive with" sellable="true" termPrice="">
</node>
</node>
</node>
<node label="dsadaJames" rid="3" parent="" transtype="" category="film" family="mobiles" defaulttariffid="" recordtype="Offer" description="This is the test" ruleofferid="" initPrice="10.0" recurPrice="15.0" transtype="" rule="" sellable="true" termPrice="">
</node>'
this is constructed at runtime.
If I then use
jsList = new XMLList(doc);
I get a Error #1104
however if I use the string
var doc:String = '<node label="Mike" rid="1" parent="" transtype="" category="film" family="mobiles" defaulttariffid="3232" recordtype="Asset" description="This is the test" ruleofferid="" initPrice="10.0" recurPrice="15.0" transtype="" rule="" sellable="true" termPrice="">
<node label="MikeT" rid="10" parent="1" transtype="" category="film" family="mobiles" defaulttariffid="3232" recordtype="Service Line" description="This is the test" ruleofferid="2" initPrice="10.0" recurPrice="15.0" transtype="" rule="Is Mutually Exclusive with" sellable="true" termPrice="">
</node>
</node>
<node label="dsadaJames" rid="3" parent="" transtype="" category="film" family="mobiles" defaulttariffid="" recordtype="Offer" description="This is the test" ruleofferid="" initPrice="10.0" recurPrice="15.0" transtype="" rule="" sellable="true" termPrice="">
</node>'
its all fine.
Can anyone help me with this?
|