XPath style filtering in E4X

15 10 2009

One area of Flex/ActionScript that seems under documented is how to do XPath style filtering with E4X. It works pretty much the same way. But with a syntax is just different enough that I’m left looking back thru my code every time I need to do it. Now I’ll look here instead šŸ™‚


-- E4X
root.foo.(@attribute == 'bar').baz
-- XPath
/root/foo[@attribute == 'bar']/baz

Advertisements

Actions

Information

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




%d bloggers like this: