E4X: We Could Use This In the C# World

by bob on August 17, 2007

You Learn Something New Every Day Department: Saw this interesting example (via Software Development with Scott) of ECMAScript for XML, or E4X for short.  It’s an extension to JavaScript that strikes me at least as the most intuitive way I’ve yet seen to manipulate XML in code.  I’ll admit I haven’t yet explored how LINQ will handle this … I’m now motivated to do so, for comparison purposes.

{ 2 comments… read them below or add one }

Marcus Mattingly August 29, 2007 at 8:38 am

E4X is awesome! Actionscript 3.0 implements E4X and creating Flex 2 applications that manipulate XML is so much easier using this syntax. I too would love to see something like this in C#. I also have not looked at LINQ yet.

Chris Ortman September 10, 2007 at 8:25 am

Not C#, but VB9 is very close.

Leave a Comment

Previous post:

Next post: