I guess I should have copied the entire XML.

<REGISTRY xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 

Turns out if I just remove the last namespace, 

Then it works correctly.

Any idea why this would cause it to not be able to find the children?

Michael J. Regert

Please consider the environment before printing this email.

Confidentiality Notice | This e-mail message, including any attachments, is for 
the sole use of the intended recipient(s) and may contain confidential or 
proprietary information. Any unauthorized review, use, disclosure or 
distribution is prohibited. If you are not the intended recipient, immediately 
contact the sender by reply e-mail and destroy all copies of the original 

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Brendan Meutzner
Sent: Thursday, September 22, 2011 10:20 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] e4x help

You shouldn't do a check on the length() for xmlRoot... that represents the 
REGISTRY level... otherwise your code looks fine.

On Thu, Sep 22, 2011 at 4:54 PM, 
<michael_reg...@dell.com<mailto:michael_reg...@dell.com>> wrote:

I must be missing something simple here.  I’m reading in XML that looks like 

<?xml version="1.0" encoding="UTF-8"?>

I’m trying to get all <Atribute> nodes using the .. operator, but it always 
returns 0, even though xmlRoot looks fine.

protected function xmlService_resultHandler(event:ResultEvent):void
      if (event != null && event.result != null && event.result is XML) {
            var xmlRoot:XML = event.result as XML;
            if (xmlRoot && xmlRoot.length() > 0) {
                  var lst:XMLList = xmlRoot..Attribute;
                  trace("lst length = " + lst.length());


Reply via email to