Create Attribute via Actionscript

Hey,

Is there a way using Actionscript to create a node containing an attribute?

I know to create a node you would use something like

myXML.createElement("myNode");

I need something more like createAttribute. :beer:

Thanks…