That seems pretty likely.. <br><br><br><div class="gmail_quote">On Jan 25, 2008 12:37 AM, Elliot Winard <<a href="mailto:enw@laszlosystems.com">enw@laszlosystems.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
D'ya think this is a backwards compatibility thing because Flash always<br>used to support invalid XML that had no root node?<br>-e<br><div><div></div><div class="Wj3C7c"><br>Henry Minsky wrote:<br>><br>> The Flash 9 runtime defines a class called XMLList, which is like an<br>
> XML DOM object, except it doesn't need t a root node, it can be a list<br>> of elements.<br>><br>> This is interesting because it is making explicit something that we've<br>> been doing implicitly.<br>
><br>> In LZX we allow a dataset that looks like<br>><br>> <dataset><br>> <foo/><br>> <bar/><br>> <baz/><br>> </dataset><br>><br>> Which makes a dataset which looks like<br>
><br>> «lz.dataset#0| <foo><foo/><bar/><baz/></foo>»<br>><br>> lzx> foo.childNodes<br>> «Array(3)#1| [<foo/>, <bar/>, <baz/>]»<br>> lzx><br>><br>> Because we implicitly make a root node which is never shown.<br>
><br>> Many times it is useful to represent list data as XML, and you don't<br>> want to have to force it to have a single root node.<br>><br>> They apparently decided this was common enough to make a class for it.<br>
> However, the XMLList object throws and error if<br>> you try to do any XML operations on it, you need to iterate over it's<br>> members if it has length greater than one.<br>><br>><br>><br>><br>
><br>><br>> --<br>> Henry Minsky<br>> Software Architect<br></div></div>> <a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a> <mailto:<a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a>><br>
><br></blockquote></div><br><br clear="all"><br>-- <br>Henry Minsky<br>Software Architect<br><a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a><br><br>