That's awesome.
As for your test cases, I have two common uses. I receive my server data back
in e4x format. So I need to make sure I can separate out different XML sets
from one call and also be able to do inline filtering later. A third case
would be for the filterfunctions and sorting.
Forgive any issues with the following, I'm free typing this in email.
1. One call, two sets.
var xmlSource:XML =
<xmlParentNode>
<Set1>
<child><year>2015</year></child>
<child><year>2016</year></child>
<child><year>2017</year></child>
</Set1>
<Set2>
<child><year>2015</year></child>
<child><year>2016</year></child>
<child><year>2017</year></child>
</Set2>
</xmlParentNode>;
var xmllcSet1:XMLListCollection = new XMLListCollection();
var xmllcSet2:XMLListCollection = new XMLListCollection();
xmllcSet1.source = xmlSource.Set1.child;
xmllcSet2.source = xmlSource.Set2.child;
2. And inline filtering using the same xmlSource.
var xmllcFiltered: XMLListCollection = new XMLListCollection();
xmllcFiltered.source = xmlSource. Set1.child.(year == "2015");
-Mark
-----Original Message-----
From: Harbs [mailto:[email protected]]
Sent: Sunday, April 10, 2016 9:03 AM
To: [email protected]
Subject: [Non-DoD Source] [FlexJS][XML]first milestone
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.)