Yay!  That's fantastic news.

Just curious.  Will this case work?

var svg:XML = <svg>
  <group>
    <rect id="1" />
    <rect id="2" />
  </group>
  <group>
    <rect id="3" />
    <rect id="4" />
  </group>
</svg>

var rects:XMLList = svg..rect;

//rects should contain all the rects in the svg, i.e.
<rect id="1"/>
<rect id="2"/>
<rect id="3"/>
<rect id="4"/>

Thanks,
Om


On Mon, Apr 11, 2016 at 2:21 PM, Harbs <harbs.li...@gmail.com> wrote:

> I made some great progress today.
>
> I just compared the output of some pretty whacky xml processing in Flash
> to the output using the JS XML classes and the output was pretty close!
>
> There are definitely some issues I still need to work on (besides some
> compiler issues in JIRA), but I’m really happy with it already. I expect to
> be able to try and run some production code through the compiler in the
> next week or so and see what happens.
>
> On Apr 10, 2016, at 4:02 PM, Harbs <harbs.li...@gmail.com> wrote:
>
> > I reached a milestone today with E4X. I have the first working test
> which reads an XML literal, writes it back out to a string and writes the
> value of an attribute using E4X notation in Javascript!
> >
> > Over the next couple of weeks I expect to be fixing a lot of issues
> related to XML and the better the test-case coverage we have, the better
> the quality will be.
> >
> > I’d like to put out a call for snippets of E4X code that people are
> using in the wild so we can incorporate tests for as many use cases as we
> can get.
> >
> > If you have code snippets to contribute, please respond!
> >
> > Thanks,
> > Harbs
> >
> > (P.S. There is currently a compiler issue with two of the XML methods,
> so the XML.js file needs a bit of editing before it can be used. Hopefully
> this issue will be fixed soon.)
>
>

Reply via email to