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> <street>99 Broad St.</street> <city>Newton</city>
<state>MA</state> <zip>01234</zip> </address> </employee> </employees>;
Paul
----- Original Message ----- From: "Kenneth Kawamoto"
<[EMAIL PROTECTED]>
To: "Flash Coders List" <[email protected]>
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> <street>99 Broad St.</street>
<city>Newton</city> <state>MA</state> <zip>01234</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
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders