1 Reply Latest reply: Aug 27, 2013 12:05 PM by sinious RSS

    XML attribute 'with' reserved?

    Damon Edwards Community Member

      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."