Код AS3:
var test:XML = <test/>;
var ns:Namespace = new Namespace("ps", "http://www.example.ru");
default xml namespace = ns;
test.addNamespace(ns);
test.appendChild(<GeoInfo/>);
test.GeoInfo.appendChild(<Geo />);
test.GeoInfo.Geo.appendChild(< item Latitude = "37.234087" Longitude="74.88986"/>);
test.GeoInfo.Geo.appendChild(< item Latitude = "38.244042" Longitude="75.215684"/>);
trace( test.toXMLString() );