Uh... other way around, surely?
var myString:String = "<?xml delcaration here?>";
myString+=yourXML.toString();
save(myString, "myString.xml");

But Steven's right - that's always worked for me, with no need to use
xmlDecl. I'd never heard of xmlDecl until Wagner mentioned it...

Ian

On Thu, Apr 3, 2008 at 12:18 AM, Steven Sacks <[EMAIL PROTECTED]> wrote:
> myString:String = yourXML.toString();
>  myString += "<?xml delcaration here?>";
>  save(myString, "myString.xml");
>
>  An XML file is just a text file with a .xml extension.
>
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to