RE: [flexcoders] pulling my hair out with e4x!!!
When displaying XML, always use toXMLString(). The behavior you are seeing with toString() which is what trace uses, is actually comformant with ECMA. trace(myXML.toXMLString()); Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Derrick Anderson Sent: Tuesday, April 15, 2008 3:20 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] pulling my hair out with e4x!!! yes, i tried it and have it working now- mostly user error but I must say not being able to debug e4x expressions has ruined my day on many occasions. i was using toString on the xml list, thinking it would show me the xml node it found and children (if any), toString was returning nothing and a length of 0 so I assumed nothing was coming back. when i added children, the toString started showing me the node i was trying to find. so, the blank response held the object i was looking for- but toString was not showing it. thanks for your help on this! d. On Tue, Apr 15, 2008 at 2:53 PM, Daniel Gold <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: I've never used the attribute syntax you're using, so I'm not familiar with it, but in your first employee example this syntax returned the matching node, have you tried it? debugModel.employees.node.(@display == "Employee First Name") looks like you added another level in your latest example so for that case this should return the node: debugModel.group.(@label == "Employees").node.(@label == "Employee First Name") On Tue, Apr 15, 2008 at 1:04 PM, Derrick Anderson <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: thanks guys, i'm sure that my xml is valid, i've refined what i'm trying to do here a bit public var debugModel:XML = ... what i'm trying to do is find any node that has a certain label, like so var fieldNode:XMLList = debugModel.children().node.(attribute("label") == "Employee First Name"); and no matter what i try it is not working, what it seems to be doing is returning me all children of the node i'm looking for (there are none). if I give that node some arbitrary child nodes, then the node is returned with it's children, what gives?. d. On Tue, Apr 15, 2008 at 1:22 PM, Varun Shetty <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: make sure that your xml is wellformed it did work for me. --- code http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> " layout="vertical" initialize="runthis();"> --- code On Tue, Apr 15, 2008 at 11:43 AM, Derrick Anderson <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: can someone please explain why this does not return an XMLList? public var debugModel:XML = . var fieldNode:XMLList = debugModel.employees.node.(attribute("display") == "Employee First Name"); but this does... public var thePeople:XML = 27 Mims H Wright Teh AWesoeomes! . var fieldNode:XMLList = thePeople.person.(attribute("suffix") == "III"); i've tried a million different variations and i cannot get it to work with my XML- what am i doing wrong here? thanks, d.
RE: [flexcoders] pulling my hair out with e4x!!!
> wondering why toXMLString is not the default string representation of an XML object I believe our implementation follows the E4X spec. I don't know why the spec committee designed it this way. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Gold Sent: Tuesday, April 15, 2008 12:54 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] pulling my hair out with e4x!!! toXMLString is almost always the way to go. I hit a major problem related to that early on in our application. I was passing XML objects to the server in an httpService.send(xml), this method will call toString on the objects you pass it to shove them in the HTTP parameters. if you have no children in your XML object, toString returns empty string, and it took me quite a while to figure out why the server wasn't getting any data from my flex app. Now I make sure to explicitly call toXMLString if I'm sending XML objects on my services. I've seen plenty of other posts about this and was actually wondering why toXMLString is not the default string representation of an XML object? On Tue, Apr 15, 2008 at 2:48 PM, Gordon Smith <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: You probably want to use toXMLString() rather than toString(). Note that the cause of your problem wasn't in the code that you posted. That's a reason why it's best to post a complete non-working sample. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> ] On Behalf Of Derrick Anderson Sent: Tuesday, April 15, 2008 12:20 PM To: flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> Subject: Re: [flexcoders] pulling my hair out with e4x!!! yes, i tried it and have it working now- mostly user error but I must say not being able to debug e4x expressions has ruined my day on many occasions. i was using toString on the xml list, thinking it would show me the xml node it found and children (if any), toString was returning nothing and a length of 0 so I assumed nothing was coming back. when i added children, the toString started showing me the node i was trying to find. so, the blank response held the object i was looking for- but toString was not showing it. thanks for your help on this! d. On Tue, Apr 15, 2008 at 2:53 PM, Daniel Gold <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: I've never used the attribute syntax you're using, so I'm not familiar with it, but in your first employee example this syntax returned the matching node, have you tried it? debugModel.employees.node.(@display == "Employee First Name") looks like you added another level in your latest example so for that case this should return the node: debugModel.group.(@label == "Employees").node.(@label == "Employee First Name") On Tue, Apr 15, 2008 at 1:04 PM, Derrick Anderson <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: thanks guys, i'm sure that my xml is valid, i've refined what i'm trying to do here a bit public var debugModel:XML = ... what i'm trying to do is find any node that has a certain label, like so var fieldNode:XMLList = debugModel.children().node.(attribute("label") == "Employee First Name"); and no matter what i try it is not working, what it seems to be doing is returning me all children of the node i'm looking for (there are none). if I give that node some arbitrary child nodes, then the node is returned with it's children, what gives?. d. On Tue, Apr 15, 2008 at 1:22 PM, Varun Shetty <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: make sure that your xml is wellformed it did work for me. --- code http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> " layout="vertical" initialize="runthis();"> --- code On Tue, Apr 15, 2008 at 11:43 AM, Derrick Anderson <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: can someone please explain why this does not return an XMLList? public var debugModel:XML = . var fieldNode:XMLList = debugModel.employees.node.(attribute("display") == "Employee First Name"); but this does... public var thePeople:XML = 27 Mims H Wright Teh AWesoeomes! . var fieldNode:XMLList = thePeople.person.(attribute("suffix") == "III"); i've tried a million different variations and i cannot get it to work with my XML- what am i doing wrong here? thanks, d.
Re: [flexcoders] pulling my hair out with e4x!!!
toXMLString is almost always the way to go. I hit a major problem related to that early on in our application. I was passing XML objects to the server in an httpService.send(xml), this method will call toString on the objects you pass it to shove them in the HTTP parameters. if you have no children in your XML object, toString returns empty string, and it took me quite a while to figure out why the server wasn't getting any data from my flex app. Now I make sure to explicitly call toXMLString if I'm sending XML objects on my services. I've seen plenty of other posts about this and was actually wondering why toXMLString is not the default string representation of an XML object? On Tue, Apr 15, 2008 at 2:48 PM, Gordon Smith <[EMAIL PROTECTED]> wrote: >You probably want to use toXMLString() rather than toString(). > > > > Note that the cause of your problem wasn't in the code that you posted. > That's a reason why it's best to post a complete non-working sample. > > > > Gordon Smith > > Adobe Flex SDK Team > > > -- > > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *Derrick Anderson > *Sent:* Tuesday, April 15, 2008 12:20 PM > *To:* flexcoders@yahoogroups.com > *Subject:* Re: [flexcoders] pulling my hair out with e4x!!! > > > > yes, i tried it and have it working now- mostly user error but I must say > not being able to debug e4x expressions has ruined my day on many occasions. > > i was using toString on the xml list, thinking it would show me the xml > node it found and children (if any), toString was returning nothing and a > length of 0 so I assumed nothing was coming back. when i added children, > the toString started showing me the node i was trying to find. > > so, the blank response held the object i was looking for- but toString was > not showing it. > > thanks for your help on this! > d. > > On Tue, Apr 15, 2008 at 2:53 PM, Daniel Gold <[EMAIL PROTECTED]> > wrote: > > I've never used the attribute syntax you're using, so I'm not familiar > with it, but in your first employee example this syntax returned the > matching node, have you tried it? > > debugModel.employees.node.(@display == "Employee First Name") > > looks like you added another level in your latest example so for that case > this should return the node: > > debugModel.group.(@label == "Employees").node.(@label == "Employee First > Name") > > > > On Tue, Apr 15, 2008 at 1:04 PM, Derrick Anderson < > [EMAIL PROTECTED]> wrote: > > thanks guys, i'm sure that my xml is valid, i've refined what i'm trying > to do here a bit > > public var debugModel:XML = > > > data="Employee_234234-234234-234234-234234" /> > data="Employee_1-11-11-11" /> > data="Employee_234234-234234-234234-234234" /> > data="Employee_234234-234234-234234-234234" /> > data="Employee_234234-234234-234234-234234" /> > > ... > > what i'm trying to do is find any node that has a certain label, like so > > var fieldNode:XMLList = debugModel.children().node.(attribute("label") == > "Employee First Name"); > > and no matter what i try it is not working, what it seems to be doing is > returning me all children of the node i'm looking for (there are none). if > I give that node some arbitrary child nodes, then the node is returned with > it's children, what gives?. > > d. > > > > > On Tue, Apr 15, 2008 at 1:22 PM, Varun Shetty <[EMAIL PROTECTED]> wrote: > > make sure that your xml is wellformed > > it did work for me. > --- code > > http://www.adobe.com/2006/mxml"; > layout="vertical" > initialize="runthis();"> > > > > > --- code > > > > On Tue, Apr 15, 2008 at 11:43 AM, Derrick Anderson < > [EMAIL PROTECTED]> wrote: > > can someone please explain why this does not return an XMLList? > > public var debugModel:XML = > > data="Employee_234234-234234-234234-234234" /> > data="Employee_234234-234234-234234-234234" /> > . > > > var fieldNode:XMLList = debugModel.employees.node.(attribute("display") == > "Employee First Name"); > > but this does... > > public var thePeople:XML = > > 27 > Mims H Wright > Teh AWesoeomes! > > > . > > var fieldNode:XMLList = thePeople.person.(attribute("suffix") == "III"); > > i've tried a million different variations and i cannot get it to work with > my XML- what am i doing wrong here? > > thanks, > d. > > > > > > > > > >
RE: [flexcoders] pulling my hair out with e4x!!!
You probably want to use toXMLString() rather than toString(). Note that the cause of your problem wasn't in the code that you posted. That's a reason why it's best to post a complete non-working sample. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Derrick Anderson Sent: Tuesday, April 15, 2008 12:20 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] pulling my hair out with e4x!!! yes, i tried it and have it working now- mostly user error but I must say not being able to debug e4x expressions has ruined my day on many occasions. i was using toString on the xml list, thinking it would show me the xml node it found and children (if any), toString was returning nothing and a length of 0 so I assumed nothing was coming back. when i added children, the toString started showing me the node i was trying to find. so, the blank response held the object i was looking for- but toString was not showing it. thanks for your help on this! d. On Tue, Apr 15, 2008 at 2:53 PM, Daniel Gold <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: I've never used the attribute syntax you're using, so I'm not familiar with it, but in your first employee example this syntax returned the matching node, have you tried it? debugModel.employees.node.(@display == "Employee First Name") looks like you added another level in your latest example so for that case this should return the node: debugModel.group.(@label == "Employees").node.(@label == "Employee First Name") On Tue, Apr 15, 2008 at 1:04 PM, Derrick Anderson <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: thanks guys, i'm sure that my xml is valid, i've refined what i'm trying to do here a bit public var debugModel:XML = ... what i'm trying to do is find any node that has a certain label, like so var fieldNode:XMLList = debugModel.children().node.(attribute("label") == "Employee First Name"); and no matter what i try it is not working, what it seems to be doing is returning me all children of the node i'm looking for (there are none). if I give that node some arbitrary child nodes, then the node is returned with it's children, what gives?. d. On Tue, Apr 15, 2008 at 1:22 PM, Varun Shetty <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: make sure that your xml is wellformed it did work for me. --- code http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> " layout="vertical" initialize="runthis();"> --- code On Tue, Apr 15, 2008 at 11:43 AM, Derrick Anderson <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: can someone please explain why this does not return an XMLList? public var debugModel:XML = . var fieldNode:XMLList = debugModel.employees.node.(attribute("display") == "Employee First Name"); but this does... public var thePeople:XML = 27 Mims H Wright Teh AWesoeomes! . var fieldNode:XMLList = thePeople.person.(attribute("suffix") == "III"); i've tried a million different variations and i cannot get it to work with my XML- what am i doing wrong here? thanks, d.
Re: [flexcoders] pulling my hair out with e4x!!!
yes, i tried it and have it working now- mostly user error but I must say not being able to debug e4x expressions has ruined my day on many occasions. i was using toString on the xml list, thinking it would show me the xml node it found and children (if any), toString was returning nothing and a length of 0 so I assumed nothing was coming back. when i added children, the toString started showing me the node i was trying to find. so, the blank response held the object i was looking for- but toString was not showing it. thanks for your help on this! d. On Tue, Apr 15, 2008 at 2:53 PM, Daniel Gold <[EMAIL PROTECTED]> wrote: > I've never used the attribute syntax you're using, so I'm not familiar > with it, but in your first employee example this syntax returned the > matching node, have you tried it? > > debugModel.employees.node.(@display == "Employee First Name") > > looks like you added another level in your latest example so for that case > this should return the node: > > debugModel.group.(@label == "Employees").node.(@label == "Employee First > Name") > > > > On Tue, Apr 15, 2008 at 1:04 PM, Derrick Anderson < > [EMAIL PROTECTED]> wrote: > > > thanks guys, i'm sure that my xml is valid, i've refined what i'm > > trying to do here a bit > > > > public var debugModel:XML = > > > > > > > data="Employee_234234-234234-234234-234234" /> > > > data="Employee_1-11-11-11" /> > > > data="Employee_234234-234234-234234-234234" /> > > > data="Employee_234234-234234-234234-234234" /> > > > data="Employee_234234-234234-234234-234234" /> > > > > ... > > > > what i'm trying to do is find any node that has a certain label, like so > > > > var fieldNode:XMLList = debugModel.children().node.(attribute("label") > > == "Employee First Name"); > > > > and no matter what i try it is not working, what it seems to be doing is > > returning me all children of the node i'm looking for (there are none). if > > I give that node some arbitrary child nodes, then the node is returned with > > it's children, what gives?. > > > > d. > > > > > > > > > > On Tue, Apr 15, 2008 at 1:22 PM, Varun Shetty <[EMAIL PROTECTED]> wrote: > > > > > make sure that your xml is wellformed > > > > > > it did work for me. > > > --- code > > > > > > http://www.adobe.com/2006/mxml"; > > > layout="vertical" > > > initialize="runthis();"> > > > > > > > > > > > > > > > --- code > > > > > > > > > On Tue, Apr 15, 2008 at 11:43 AM, Derrick Anderson < > > > [EMAIL PROTECTED]> wrote: > > > > > > > can someone please explain why this does not return an XMLList? > > > > > > > > public var debugModel:XML = > > > > > > > > > > > data="Employee_234234-234234-234234-234234" /> > > > > > > > data="Employee_234234-234234-234234-234234" /> > > > > . > > > > > > > > > > > > var fieldNode:XMLList = > > > > debugModel.employees.node.(attribute("display") == "Employee First > > > > Name"); > > > > > > > > but this does... > > > > > > > > public var thePeople:XML = > > > > > > > > 27 > > > > Mims H Wright > > > > Teh AWesoeomes! > > > > > > > > > > > > . > > > > > > > > var fieldNode:XMLList = thePeople.person.(attribute("suffix") == > > > > "III"); > > > > > > > > i've tried a million different variations and i cannot get it to > > > > work with my XML- what am i doing wrong here? > > > > > > > > thanks, > > > > d. > > > > > > > > > > > > > >
Re: [flexcoders] pulling my hair out with e4x!!!
I've never used the attribute syntax you're using, so I'm not familiar with it, but in your first employee example this syntax returned the matching node, have you tried it? debugModel.employees.node.(@display == "Employee First Name") looks like you added another level in your latest example so for that case this should return the node: debugModel.group.(@label == "Employees").node.(@label == "Employee First Name") On Tue, Apr 15, 2008 at 1:04 PM, Derrick Anderson < [EMAIL PROTECTED]> wrote: > thanks guys, i'm sure that my xml is valid, i've refined what i'm trying > to do here a bit > > public var debugModel:XML = > > > data="Employee_234234-234234-234234-234234" /> > data="Employee_1-11-11-11" /> > data="Employee_234234-234234-234234-234234" /> > data="Employee_234234-234234-234234-234234" /> > data="Employee_234234-234234-234234-234234" /> > > ... > > what i'm trying to do is find any node that has a certain label, like so > > var fieldNode:XMLList = debugModel.children().node.(attribute("label") == > "Employee First Name"); > > and no matter what i try it is not working, what it seems to be doing is > returning me all children of the node i'm looking for (there are none). if > I give that node some arbitrary child nodes, then the node is returned with > it's children, what gives?. > > d. > > > > > On Tue, Apr 15, 2008 at 1:22 PM, Varun Shetty <[EMAIL PROTECTED]> wrote: > > > make sure that your xml is wellformed > > > > it did work for me. > > --- code > > > > http://www.adobe.com/2006/mxml"; > > layout="vertical" > > initialize="runthis();"> > > > > > > > > > > --- code > > > > > > On Tue, Apr 15, 2008 at 11:43 AM, Derrick Anderson < > > [EMAIL PROTECTED]> wrote: > > > > > can someone please explain why this does not return an XMLList? > > > > > > public var debugModel:XML = > > > > > > > > data="Employee_234234-234234-234234-234234" /> > > > > > data="Employee_234234-234234-234234-234234" /> > > > . > > > > > > > > > var fieldNode:XMLList = > > > debugModel.employees.node.(attribute("display") == "Employee First Name"); > > > > > > but this does... > > > > > > public var thePeople:XML = > > > > > > 27 > > > Mims H Wright > > > Teh AWesoeomes! > > > > > > > > > . > > > > > > var fieldNode:XMLList = thePeople.person.(attribute("suffix") == > > > "III"); > > > > > > i've tried a million different variations and i cannot get it to work > > > with my XML- what am i doing wrong here? > > > > > > thanks, > > > d. > > > > > > > > >
Re: [flexcoders] pulling my hair out with e4x!!!
thanks guys, i'm sure that my xml is valid, i've refined what i'm trying to do here a bit public var debugModel:XML = ... what i'm trying to do is find any node that has a certain label, like so var fieldNode:XMLList = debugModel.children().node.(attribute("label") == "Employee First Name"); and no matter what i try it is not working, what it seems to be doing is returning me all children of the node i'm looking for (there are none). if I give that node some arbitrary child nodes, then the node is returned with it's children, what gives?. d. On Tue, Apr 15, 2008 at 1:22 PM, Varun Shetty <[EMAIL PROTECTED]> wrote: > make sure that your xml is wellformed > > it did work for me. > --- code > > http://www.adobe.com/2006/mxml"; > layout="vertical" > initialize="runthis();"> > > > > > --- code > > > On Tue, Apr 15, 2008 at 11:43 AM, Derrick Anderson < > [EMAIL PROTECTED]> wrote: > > > can someone please explain why this does not return an XMLList? > > > > public var debugModel:XML = > > > > > data="Employee_234234-234234-234234-234234" /> > > > data="Employee_234234-234234-234234-234234" /> > > . > > > > > > var fieldNode:XMLList = debugModel.employees.node.(attribute("display") > > == "Employee First Name"); > > > > but this does... > > > > public var thePeople:XML = > > > > 27 > > Mims H Wright > > Teh AWesoeomes! > > > > > > . > > > > var fieldNode:XMLList = thePeople.person.(attribute("suffix") == "III"); > > > > i've tried a million different variations and i cannot get it to work > > with my XML- what am i doing wrong here? > > > > thanks, > > d. > > > > >
Re: [flexcoders] pulling my hair out with e4x!!!
make sure that your xml is wellformed it did work for me. --- code http://www.adobe.com/2006/mxml"; layout="vertical" initialize="runthis();"> --- code On Tue, Apr 15, 2008 at 11:43 AM, Derrick Anderson < [EMAIL PROTECTED]> wrote: > can someone please explain why this does not return an XMLList? > > public var debugModel:XML = > > data="Employee_234234-234234-234234-234234" /> > data="Employee_234234-234234-234234-234234" /> > . > > > var fieldNode:XMLList = debugModel.employees.node.(attribute("display") == > "Employee First Name"); > > but this does... > > public var thePeople:XML = > > 27 > Mims H Wright > Teh AWesoeomes! > > > . > > var fieldNode:XMLList = thePeople.person.(attribute("suffix") == "III"); > > i've tried a million different variations and i cannot get it to work with > my XML- what am i doing wrong here? > > thanks, > d. > >
Re: [flexcoders] pulling my hair out with e4x!!!
ok so this is just nutty apparently the reason it's different is because in the example i put that works, the 'person' node has children. what that has to do with it I have no idea, but apparently- e4x is not returning me self closing nodes with no children. anybody know what is up with this??? d. On Tue, Apr 15, 2008 at 12:29 PM, Derrick Anderson < [EMAIL PROTECTED]> wrote: > weird, because it does not work for me. i don't understand. > > > On Tue, Apr 15, 2008 at 12:06 PM, Daniel Gold <[EMAIL PROTECTED]> > wrote: > > > worked for me using this: > > > > debugModel.employees.node.(@display == "Employee First Name") > > > > > > On Tue, Apr 15, 2008 at 10:43 AM, Derrick Anderson < > > [EMAIL PROTECTED]> wrote: > > > > > can someone please explain why this does not return an XMLList? > > > > > > public var debugModel:XML = > > > > > > > > data="Employee_234234-234234-234234-234234" /> > > > > > data="Employee_234234-234234-234234-234234" /> > > > . > > > > > > > > > var fieldNode:XMLList = > > > debugModel.employees.node.(attribute("display") == "Employee First Name"); > > > > > > but this does... > > > > > > public var thePeople:XML = > > > > > > 27 > > > Mims H Wright > > > Teh AWesoeomes! > > > > > > > > > . > > > > > > var fieldNode:XMLList = thePeople.person.(attribute("suffix") == > > > "III"); > > > > > > i've tried a million different variations and i cannot get it to work > > > with my XML- what am i doing wrong here? > > > > > > thanks, > > > d. > > > > > > > > > > >
Re: [flexcoders] pulling my hair out with e4x!!!
weird, because it does not work for me. i don't understand. On Tue, Apr 15, 2008 at 12:06 PM, Daniel Gold <[EMAIL PROTECTED]> wrote: > worked for me using this: > > debugModel.employees.node.(@display == "Employee First Name") > > > On Tue, Apr 15, 2008 at 10:43 AM, Derrick Anderson < > [EMAIL PROTECTED]> wrote: > > > can someone please explain why this does not return an XMLList? > > > > public var debugModel:XML = > > > > > data="Employee_234234-234234-234234-234234" /> > > > data="Employee_234234-234234-234234-234234" /> > > . > > > > > > var fieldNode:XMLList = debugModel.employees.node.(attribute("display") > > == "Employee First Name"); > > > > but this does... > > > > public var thePeople:XML = > > > > 27 > > Mims H Wright > > Teh AWesoeomes! > > > > > > . > > > > var fieldNode:XMLList = thePeople.person.(attribute("suffix") == "III"); > > > > i've tried a million different variations and i cannot get it to work > > with my XML- what am i doing wrong here? > > > > thanks, > > d. > > > > >
Re: [flexcoders] pulling my hair out with e4x!!!
worked for me using this: debugModel.employees.node.(@display == "Employee First Name") On Tue, Apr 15, 2008 at 10:43 AM, Derrick Anderson < [EMAIL PROTECTED]> wrote: > can someone please explain why this does not return an XMLList? > > public var debugModel:XML = > > data="Employee_234234-234234-234234-234234" /> > data="Employee_234234-234234-234234-234234" /> > . > > > var fieldNode:XMLList = debugModel.employees.node.(attribute("display") == > "Employee First Name"); > > but this does... > > public var thePeople:XML = > > 27 > Mims H Wright > Teh AWesoeomes! > > > . > > var fieldNode:XMLList = thePeople.person.(attribute("suffix") == "III"); > > i've tried a million different variations and i cannot get it to work with > my XML- what am i doing wrong here? > > thanks, > d. > >
[flexcoders] pulling my hair out with e4x!!!
can someone please explain why this does not return an XMLList? public var debugModel:XML = . var fieldNode:XMLList = debugModel.employees.node.(attribute("display") == "Employee First Name"); but this does... public var thePeople:XML = 27 Mims H Wright Teh AWesoeomes! . var fieldNode:XMLList = thePeople.person.(attribute("suffix") == "III"); i've tried a million different variations and i cannot get it to work with my XML- what am i doing wrong here? thanks, d.