I was looking for a method like that under the XML class. Flash's help file is 
suggesting to use XML instead of XMLDocument which is AS2's xml legacy.

But there doesn't seem to be anything like that method under the XML class...


BLITZ | Patrick Matte - 310-551-0200 x214

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wagner Amaral
Sent: Wednesday, April 02, 2008 3:46 PM
To: Flash Coders List
Subject: Re: [Flashcoders] AIR - Insert header in XML file

Well, if you just use quotes properly, that is ;)

'<?xml version="1.0" encoding="utf-8"?>';


On Wed, Apr 2, 2008 at 7:45 PM, Wagner Amaral <[EMAIL PROTECTED]> wrote:

> You can set the xmlDecl property:
>
> AS3:
> XMLDocument().xmlDecl = "<?xml version="1.0" encoding="utf-8"?>";
>
> AS2:
> XML().xmlDecl = "<?xml version="1.0" encoding="utf-8"?>";
>
>
>
>
> On Wed, Apr 2, 2008 at 7:06 PM, Patrick Matte | BLITZ <
> [EMAIL PROTECTED]> wrote:
>
> > I'm saving an xml file with AIR, it works but how can I add <?xml
> > version="1.0" encoding="UTF-8"?> at the top of the file?
> >
> > _______________________________________________
> > 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

Reply via email to