Return-Path: X-Original-To: apmail-flex-commits-archive@www.apache.org Delivered-To: apmail-flex-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D9CDA19AB5 for ; Sun, 10 Apr 2016 12:53:12 +0000 (UTC) Received: (qmail 9529 invoked by uid 500); 10 Apr 2016 12:53:12 -0000 Delivered-To: apmail-flex-commits-archive@flex.apache.org Received: (qmail 9499 invoked by uid 500); 10 Apr 2016 12:53:12 -0000 Mailing-List: contact commits-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list commits@flex.apache.org Received: (qmail 9491 invoked by uid 99); 10 Apr 2016 12:53:12 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Apr 2016 12:53:12 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 50307DFC6E; Sun, 10 Apr 2016 12:53:12 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: harbs@apache.org To: commits@flex.apache.org Message-Id: <8105042471f0400cb364f356323375c7@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: git commit: [flex-asjs] [refs/heads/e4x] - First working E4X test Date: Sun, 10 Apr 2016 12:53:12 +0000 (UTC) Repository: flex-asjs Updated Branches: refs/heads/e4x ff4cf6920 -> 5d2d0dd43 First working E4X test Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/5d2d0dd4 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/5d2d0dd4 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/5d2d0dd4 Branch: refs/heads/e4x Commit: 5d2d0dd43410072734f7ae164f1a487260d471ad Parents: ff4cf69 Author: Harbs Authored: Sun Apr 10 15:53:07 2016 +0300 Committer: Harbs Committed: Sun Apr 10 15:53:07 2016 +0300 ---------------------------------------------------------------------- frameworks/projects/XML/src/main/flex/QName.as | 8 ++++--- frameworks/projects/XML/src/main/flex/XML.as | 23 ++++++++++++++------- manualtests/XMLTest/src/MyInitialView.mxml | 5 +++-- 3 files changed, 23 insertions(+), 13 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5d2d0dd4/frameworks/projects/XML/src/main/flex/QName.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/XML/src/main/flex/QName.as b/frameworks/projects/XML/src/main/flex/QName.as index bfd7b40..c6886aa 100644 --- a/frameworks/projects/XML/src/main/flex/QName.as +++ b/frameworks/projects/XML/src/main/flex/QName.as @@ -57,11 +57,13 @@ package if(localNameVal) _localName = localNameVal.toString(); } + else if(localNameVal) + { + _localName = localNameVal; + } else if (qNameOrUri && qNameOrUri.toString()) { - _uri = qNameOrUri.toString(); - if(localNameVal) - _localName = localNameVal; + _localName = qNameOrUri.toString(); } } http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5d2d0dd4/frameworks/projects/XML/src/main/flex/XML.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/XML/src/main/flex/XML.as b/frameworks/projects/XML/src/main/flex/XML.as index 86a3ed1..b2222b6 100644 --- a/frameworks/projects/XML/src/main/flex/XML.as +++ b/frameworks/projects/XML/src/main/flex/XML.as @@ -329,6 +329,10 @@ package var node:Element = doc.childNodes[0]; _version = doc.xmlVersion; _encoding = doc.xmlEncoding; + _name = new QName(); + _name.prefix = node.prefix; + _name.uri = node.namespaceURI; + _name.localName = node.localName; iterateElement(node,this); normalize(); } @@ -2257,16 +2261,19 @@ package //attributes and namespace declarations... (15-16) for(i=0;i; - trace(xml1); - trace(xml1.baz); + trace(xml1.toXMLString()); + var baz:XMLList = xml1.@baz; + trace(xml1.@baz.toString()); } ]]>