Yes, it’s because “new” is reserved.  Can you file a bug please?  I thought we had cases like that covered.  http://www.macromedia.com/go/wish.

 

Matt

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Christoph Diefenthal
Sent: Thursday, October 06, 2005 7:35 AM
To: 'flexcoders@yahoogroups.com'
Subject: [flexcoders] mx:Model - XML with keywords like "new"

 

Hello again,

does anyone about problems using keywords within a mx:Model ?

For example, if I've got a XML-file like this:


<menubar>
      <file>
            <new>true</new>
      </file>
</menubar>


And try to load it into an mx:Model like:

<mx:Model id="testXML"
            source="test.xml" ></mx:Model>



I get a Compilation Error like:


Error main.mxml:7
Expected a field name after '.' operator.


Which is not very helpful. But after I changed <new> to <newitem> it works
again.
My assumption is, that because "new" is a keyword it can't be used as an
attribute name... Am I right? Is there a way to use an <new> element anyway?
With namespaces for example? Any suggestions???

Cheers
Christoph




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to