Next item: I’m working on namespaces and QNames.
E4X allows the specification of default namespaces like this: default xml namespace = "http://ns.adobe.com/mxml/2009”; This causes all elements created after this statement to act as if they were declared like this: <elem xmlns="http://ns.adobe.com/mxml/2009”/> (notice, no prefix) I’m not sure how commonly used this feature is, but we should probably map this statement to some kind of static method. We can either attach it to XML, or Namespace. (I’ve learned more than I care to know about E4X in the past few weeks. I have the E4X spec coming out of my ears…) ;-) On Jan 5, 2016, at 7:12 PM, Alex Harui <aha...@adobe.com> wrote: > > > On 1/5/16, 7:49 AM, "Harbs" <harbs.li...@gmail.com> wrote: > >> BTW, I’m not sure what we said about myXML.@foo = “baz” or myXML.@ba:foo >> = “baz”. >> >> Are we mapping that to myXML.setChild(“@foo”,”baz”) and >> myXML.setChild(“@ba:foo”,”baz”), or are we creating a separate function >> for attributes? > > I tried it and got an exception. So I just pushed a fix for that where it > will call > > myXML.setAttribute(“foo”,”baz”) > > > I'm going to spend some time on XML and the compiler today. > > -Alex >