Re: [Flashcoders] Placing variables in XML
name first={firstName} last={lastName} / Kenneth Kawamoto http://www.materiaprima.co.uk/ Sidney de Koning wrote: Hi List A short question about XML. When i create XML in Flash i say: var xmlString:XML = employee ssn=789-789-7890 name first=Mary last=Roe/ address street99 Broad St./street cityNewton/city stateMA/state zip01234/zip /address /employee /employees; How do i place variables within that XML? for instance i want the first attribute to be a variable called firstName in the name node? when i compile i get errors: 1086: Syntax error: expecting semicolon before xmltagstartend. Please advice/help, Sidney ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Placing variables in XML
BTW your xmlString is badly formed. Maybe it should be: var xmlString:XML =employees employee ssn=789-789-7890 name first=Mary last=Roe/ address street99 Broad St./street cityNewton/city stateMA/state zip01234/zip /address /employee /employees; Paul - Original Message - From: Kenneth Kawamoto [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Tuesday, February 19, 2008 2:20 PM Subject: Re: [Flashcoders] Placing variables in XML name first={firstName} last={lastName} / Kenneth Kawamoto http://www.materiaprima.co.uk/ Sidney de Koning wrote: Hi List A short question about XML. When i create XML in Flash i say: var xmlString:XML = employee ssn=789-789-7890 name first=Mary last=Roe/ address street99 Broad St./street cityNewton/city stateMA/state zip01234/zip /address /employee /employees; How do i place variables within that XML? for instance i want the first attribute to be a variable called firstName in the name node? when i compile i get errors: 1086: Syntax error: expecting semicolon before xmltagstartend. Please advice/help, Sidney ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Placing variables in XML
already found that, thanks for the comment. Sid Paul Andrews wrote: BTW your xmlString is badly formed. Maybe it should be: var xmlString:XML =employees employee ssn=789-789-7890 name first=Mary last=Roe/ address street99 Broad St./street cityNewton/city stateMA/state zip01234/zip /address /employee /employees; Paul - Original Message - From: Kenneth Kawamoto [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Tuesday, February 19, 2008 2:20 PM Subject: Re: [Flashcoders] Placing variables in XML name first={firstName} last={lastName} / Kenneth Kawamoto http://www.materiaprima.co.uk/ Sidney de Koning wrote: Hi List A short question about XML. When i create XML in Flash i say: var xmlString:XML = employee ssn=789-789-7890 name first=Mary last=Roe/ address street99 Broad St./street cityNewton/city stateMA/state zip01234/zip /address /employee /employees; How do i place variables within that XML? for instance i want the first attribute to be a variable called firstName in the name node? when i compile i get errors: 1086: Syntax error: expecting semicolon before xmltagstartend. Please advice/help, Sidney ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Placing variables in XML
Thanks! that did the trick! Sid Kenneth Kawamoto wrote: name first={firstName} last={lastName} / Kenneth Kawamoto http://www.materiaprima.co.uk/ Sidney de Koning wrote: Hi List A short question about XML. When i create XML in Flash i say: var xmlString:XML = employee ssn=789-789-7890 name first=Mary last=Roe/ address street99 Broad St./street cityNewton/city stateMA/state zip01234/zip /address /employee /employees; How do i place variables within that XML? for instance i want the first attribute to be a variable called firstName in the name node? when i compile i get errors: 1086: Syntax error: expecting semicolon before xmltagstartend. Please advice/help, Sidney ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders