| |
| | Mike Morearty » Blog Archive » Common E4X pitfalls |
 | | As cool as I think E4X is, there are a few things about it that can throw you off when you're getting started (they certainly took me a while to get used to). |
 | | In E4X, "cats" is actually a collection -- a list of all the nodes (remember, "cats" is an XMLList, with just one entry in this example), and when you iterate over "cats", that means you want to get one each time through the loop. |
 | | Yeah, the tricky thing with a post like this one is that when someone is learning E4X, they are unlikely to find this post before they start running into these stumbling blocks. |
| www.morearty.com /blog/2007/03/13/common-e4x-pitfalls (1854 words) |
|