var xml:XML = <foo><a/><b/><c/><d/><e/></foo>; var boo:XML = <boo/>; xml.insertChildAfter(xml.*[2], boo); trace(xml.toXMLString());