[flexcoders] e4x help

2011-09-22 Thread michael_regert
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 AttributeNameAttr_1/AttributeName /Attribute Attribute

Re: [flexcoders] e4x help

2011-09-22 Thread Haykel BEN JEMIA
working for me. here is the code I used for testing: package { import flash.display.Sprite; public class Test extends Sprite { private var xmlRoot:XML = REGISTRY REGISTRY_DECLARATION/ REGISTRY_ENTRIES Attribute

RE: [flexcoders] e4x help

2011-09-22 Thread michael_regert
, 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

Re: [flexcoders] e4x help

2011-09-22 Thread Haykel BEN JEMIA
] 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

RE: [flexcoders] e4x help

2011-09-22 Thread michael_regert
Of Haykel BEN JEMIA Sent: Thursday, September 22, 2011 10:48 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] e4x help 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

[flexcoders] E4X help?

2009-02-15 Thread flexaustin
Is it possible to get the value of type from this XML? node id=2 data key=nameEd/data data key=typeM/data /node #8722; node id=3 data key=nameChristiaan/data data key=typeM/data /node So in this example end up with M for both?

Re: [flexcoders] E4X help?

2009-02-15 Thread Josh McDonald
Not sure exactly what you mean. Have you tried this: var typeNodes : XMLList = node.data.(attribute(key)==type); -Josh On Mon, Feb 16, 2009 at 9:58 AM, flexaustin flexaus...@yahoo.com wrote: Is it possible to get the value of type from this XML? node id=2 data key=nameEd/data data

Re: [flexcoders] E4X help?

2009-02-15 Thread claudiu ursica
node.da...@key == type ? If U want both values you should iterate ... Claudiu From: flexaustin flexaus...@yahoo.com To: flexcoders@yahoogroups.com Sent: Monday, February 16, 2009 1:58:46 AM Subject: [flexcoders] E4X help? Is it possible to get the value

[flexcoders] E4X Help

2006-10-20 Thread Tan
I try writing two comboboxes to facilitate selection of the following XML, data state label=Texas data=Texas county label=Jones data=123 / county label=Taylor data=124 / ... /state state label=Virginia data=Virginia