AS3: Using E4X double-colon operator with namespace stored in object
===

Given the following sample XML:

    var xml:XML = 
        <xmlout xmlns:ns1="http://some.namespace.com/ns1" xmlns:ns2="http://some.namespace.com/ns2" xmlns:ns3="http://some.namespace.com/ns3">
            <data>
                <item>
                    <ns1:id>some_id</ns1:id>
                </item>
            </data>
        </xmlout>

I am storing the namespaces as namespace objects in an object, like:

    var xmlNamespaces:Object = {};
				
    for (var i:uint = 0; i < xml.namespaceDeclarations().length; i++) {
    	var ns:Namespace = xml.namespaceDeclarations()[i]; 
    	xmlNamespaces[ns.prefix] = new Namespace(ns.prefix, ns.uri);
    }


I am trying to something like:

    trace(xml.data.item.xmlNamespaces["ns1"]::id.value);

Any idea if this is possible? I have not had any success. Thanks!