because the elements are then defined in the namespace " http://schemas.dell.com/wbem/biosattributeregistry/1". To access them through e4x you have to create a corresponding namespace object, e.g.:
private namespace biosattributeregistry = " http://schemas.dell.com/wbem/biosattributeregistry/1"; use namespace biosattributeregistry; Haykel Ben Jemia Allmas Web & RIA Development http://www.allmas-tn.com On Thu, Sep 22, 2011 at 4:32 PM, <michael_reg...@dell.com> wrote: > ** > > > I guess I should have copied the entire XML.**** > > ** ** > > <REGISTRY xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://schemas.dell.com/wbem/biosattributeregistry/1file:///C:/work/12G/Attribute%20Registry/DCIM_AttributeRegistry.xsd" > *xmlns*="http://schemas.dell.com/wbem/biosattributeregistry/1">**** > > ** ** > > Turns out if I just remove the last namespace, *xmlns*=" > http://schemas.dell.com/wbem/biosattributeregistry/1"**** > > ** ** > > 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 message.**** > > ** ** > > ** ** > > *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> wrote:**** > > **** > > I must be missing something simple here. I’m reading in XML that looks > like this:**** > > **** > > <?*xml* version="1.0" encoding="UTF-8"?>**** > > <REGISTRY>**** > > <REGISTRY_DECLARATION/>**** > > <REGISTRY_ENTRIES>**** > > <Attribute>**** > > <AttributeName>Attr_1</AttributeName>**** > > </Attribute>**** > > <Attribute>**** > > <AttributeName>Attr_2</AttributeName>**** > > </Attribute>**** > > <Attribute>**** > > <AttributeName>Attr_3</AttributeName>**** > > </Attribute>**** > > </REGISTRY_ENTRIES>**** > > </REGISTRY>**** > > **** > > 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());**** > > }**** > > }**** > > }**** > > **** > > **** > > *Michael***** > > **** > > ** ** > > **** > > >