| <?xml version="1.0" encoding="iso-8859-1"?> |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| --> |
| <mx:Application backgroundColor="0xFFFFFF" xmlns:mx="http://www.adobe.com/2006/mxml" > |
| |
| <mx:Script><![CDATA[ |
| |
| import mx.collections.*; |
| |
| public var foo:Namespace = new Namespace("http://foo/"); |
| |
| public var colA:XMLListCollection; |
| public var colB:XMLListCollection; |
| public var colC:XMLListCollection; |
| |
| public var listAS:XMLList = new XMLList("<nodes label='Mail' data='mail'><nodes label='Inbox' data='inbox' /></nodes><nodes label='Drafts' data='drafts'><nodes label='Memos' data='memos' /><nodes label='Faxes' data='faxes' /></nodes>"); |
| |
| public var listAS2:XML = |
| <root> |
| <nodes label="Mail" data="mail"> |
| <nodes label="Inbox" data="inbox" /> |
| </nodes> |
| <nodes label="Drafts" data="drafts"> |
| <nodes label="Memos" data="memos" /> |
| <nodes label="Faxes" data="faxes" /> |
| </nodes> |
| </root>; |
| |
| public var listAS_ns:XMLList = new XMLList("<e:nodes xmlns:e='http://foo/' label='Mail' data='mail'><e:nodes label='Inbox' data='inbox' /></e:nodes><e:nodes xmlns:e='http://foo/' label='Drafts' data='drafts'><e:nodes label='Memos' data='memos' /><e:nodes label='Faxes' data='faxes' /></e:nodes>"); |
| |
| public var listAS2_ns:XML = |
| <e:root xmlns:e="http://foo/"> |
| <e:nodes label="Mail" data="mail"> |
| <e:nodes label="Inbox" data="inbox" /> |
| </e:nodes> |
| <e:nodes label="Drafts" data="drafts"> |
| <e:nodes label="Memos" data="memos" /> |
| <e:nodes label="Faxes" data="faxes" /> |
| </e:nodes> |
| </e:root>; |
| |
| |
| ]]></mx:Script> |
| |
| <mx:XML format="e4x" id="listMXML"> |
| <topnode> |
| <nodes label="Mail" data="mail"> |
| <nodes label="Inbox" data="inbox" /> |
| </nodes> |
| <nodes label="Drafts" data="drafts"> |
| <nodes label="Memos" data="memos" /> |
| <nodes label="Faxes" data="faxes" /> |
| </nodes> |
| </topnode> |
| </mx:XML> |
| |
| <mx:XML format="e4x" id="listMXML_ns"> |
| <topnode> |
| <e:nodes xmlns:e="http://foo/" label="Mail" data="mail"> |
| <e:nodes label="Inbox" data="inbox" /> |
| </e:nodes> |
| <e:nodes xmlns:e="http://foo/" label="Drafts" data="drafts"> |
| <e:nodes label="Memos" data="memos" /> |
| <e:nodes label="Faxes" data="faxes" /> |
| </e:nodes> |
| </topnode> |
| </mx:XML> |
| |
| </mx:Application> |