While working on a XMPP implementation I'm noticing the attribute 'with' keeps throwing errors when trying to access it to set or get the data from it. Is that a reserved word or something? Sort of makes this difficult considering 'with' is used heavily in the spec..
var xml:XML = <rootNode>
<item with="test" without="rest">cool</item>
</rootNode>;
trace(xml.item.@without); // no problem
//trace(xml.item.@with); // uncomment and you'll get error "Syntax error: expecting identifier before with."
It can be how you access it when considering reserved words. Try trace(xml.item.attribute("with")); or trace(xml.item.@["with"]);