i am using Spring AS for apps that are not just in the web-browser but on the desktop (both AIR and within swf2exe apps like MDM Zinc). I need to load a config XML file that does "imports" of other relative files to the main config file. I am having issues where the import element does not seem to work.
Anyways, I've been constructing the context as follows.
var ctx:XMLApplicationContext = new XMLApplicationContext();
Contents of myconfig.xml
<object id="myObject" class="my.package.MyObject"/>
Contents of myOtherSubConfig.xml which lives in the same directory as myconfig.xml above.
<object id="myOtherObject" class="my.package.MyOtherObject"/>
After booting up Spring AS, I can successfully retrieve "myObject" however "myOtherObject" is null. I have also tried specifying the following with no success either.
The top of my config XML had this:
When the above header is in the objects tag the e4x "xml.descendants("import")" call within XMLObjectFactory._addImportLocationsIfAny() yields zero results. When I remove all the xmlns/schema info OUT of the <objects> tag. The xml.descendants("import") works fine. I took this example "objects" element declaration right out of the the first annotation within the Spring/Prana XSD file @ http://www.pranaframework.org/schema...pt-objects.xsd
<objects xmlns="http://www.pranaframework.org/objects" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.pranaframework.org/objects http://www.pranaframework.org/schema/objects/spring-actionscript-objects.xsd">
Is this an E4X bug or something else?