From PropertyElementsPreprocessor:
This does not seem to work with namespaces at all, so a property element does not work in a file such as:Code:var propertyElements:XMLList = xml.property.(attribute("file") == undefined); var properties:Properties = new Properties(); for each(var child:XML in propertyElements){ properties.setProperty(child.attribute("name")[0], child.attribute("value")[0]); } _objectFactory.properties.merge(properties); return xml;
The other preprocessors define a default namespace like this:Code:<?xml version="1.0" encoding="UTF-8"?> <objects xmlns="http://www.springactionscript.org/schema/objects" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springactionscript.org/schema/objects http://www.springactionscript.org/schema/objects/spring-actionscript-objects-1.0.xsd"> <property name="foo" value="bar"/> </objects>
use namespace spring_actionscript_objects;
Am I overlooking something, or does this mean that its impossible to active explicit properties at the moment?


Reply With Quote