E4X descendant-access (..) not working in simple case. Why?

I have a fairly simple case where I'm trying to use E4X to access some grandchildren in my xml file. The data is coming from an HTTPService POST, and I have the resultformat set to E4X. Are there any other things I should look out for? I've worked with E4X a bunch in AS3 and have never had a problem before.
I'm trying to get the Exercise tags in a for loop
for each (var node:XML in xml..Exercise) {
but xml..Exercise yields an empty XMLList.
Here is my sample xml:
<StudentProfile UserID="22" RoleID="1" Username="jsmith" FirstName="John" LastName="Smith" Email="" StudentID="" LastLogin="">
<EnrolledSection CourseID="9" CourseName="Test Class" SectionID="14" SectionName="A">
<Preferences/>
<Exercises>
<Exercise Exercise_id="1" Status="1" Enabled="true" IPValid="true" TimeValid="true" PasswordRequired="false"/>
<Exercise Exercise_id="2" Status="0" Enabled="true" IPValid="true" TimeValid="true" PasswordRequired="false"/>
<Exercise Exercise_id="3" Status="0" Enabled="true" IPValid="true" TimeValid="true" PasswordRequired="false"/>
<Exercise Exercise_id="4" Status="0" Enabled="true" IPValid="true" TimeValid="true" PasswordRequired="false"/>
</Exercises>
</EnrolledSection>
</StudentProfile>

Hi,
Using your sample XML,
var exercises:XMLList = xml..Exercise;
for each (var node:XML in exercises) {
    trace(node.@Exercise_id);
Produces the output;
1
2
3
4
So that means node is an Excerise node. SOmetimes Flash Builder does not actually show the "node" toString() in the consol correctly.
traceing exercises yeilds the correct XMLList
<Exercise Exercise_id="1" Status="1" Enabled="true" IPValid="true" TimeValid="true" PasswordRequired="false"/>
<Exercise Exercise_id="2" Status="0" Enabled="true" IPValid="true" TimeValid="true" PasswordRequired="false"/>
<Exercise Exercise_id="3" Status="0" Enabled="true" IPValid="true" TimeValid="true" PasswordRequired="false"/>
<Exercise Exercise_id="4" Status="0" Enabled="true" IPValid="true" TimeValid="true" PasswordRequired="false"/
Mike

Similar Messages

  • I've moved my Aperture library to another computer, and masters are referencing an old path name.  How can I update these references?  Reloctating masters does not work in this case :(

    I've moved my Aperture library from one computer to another using Finder.
    I merged the library with one which was already on the computer.
    Now, the photos I imported have reference to the old path name on my old computer.
    How can I update these references as "Relocate Masters" does not work in this case?

    Just one suggestion to be able to reconnect all at once:
    Create a smart album containing the images with missing masters:
    File -> New ->  Smart Album,     and add a rule: File Status is "Missing"     (or File Status is "offline")
    Then select the images in this album and go to the File menu:
    and select:   File -> Locate referenced File
    If you are lucky, Aperture will reconnect all at once, if you point the first image version to its counterpart.

  • [svn] 1720: Bugs: LCDS-304 - Authentication not working in all cases when using security constraint with NIO endpoints .

    Revision: 1720
    Author: [email protected]
    Date: 2008-05-14 14:50:06 -0700 (Wed, 14 May 2008)
    Log Message:
    Bugs: LCDS-304 - Authentication not working in all cases when using security constraint with NIO endpoints.
    QA: Yes
    Doc: No
    Details:
    Update to the TomcatLoginCommand to work correctly with NIO endpoints.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/LCDS-304
    Modified Paths:
    blazeds/branches/3.0.x/modules/opt/src/tomcat/flex/messaging/security/TomcatLoginCommand. java

    Revision: 1720
    Author: [email protected]
    Date: 2008-05-14 14:50:06 -0700 (Wed, 14 May 2008)
    Log Message:
    Bugs: LCDS-304 - Authentication not working in all cases when using security constraint with NIO endpoints.
    QA: Yes
    Doc: No
    Details:
    Update to the TomcatLoginCommand to work correctly with NIO endpoints.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/LCDS-304
    Modified Paths:
    blazeds/branches/3.0.x/modules/opt/src/tomcat/flex/messaging/security/TomcatLoginCommand. java

  • I created an Apple ID using my ISP Email when I registered at the Store/Apple Support Communities/iTunes/Face Time and it does not work in iChat. Why Not ?

    Question:-
    I created an Apple ID using my ISP Email when I registered at the Store/Apple Support Communities/iTunes/Face Time or other portal and it does not work in iChat. Why Not ?
    Answer:-
    For a Name to work in iChat it has to be an Valid AIM screen Name.
    Only Apple IDs from the @mac.com ending names registered here  and the Mobileme (@Me.com ending) names are Valid with the AIM service as well as being Apple IDs
    (I am still working on info about registering with iCloud at the moment but if this does give you an @Me.com email it may well be a valid AIM name as well)
    NOTES:-
    The @mac.com page works by linking an external (Non Apple) email with a @mac.com name.
    This External Email cannot be one linked to an Existing Apple ID (you have to use a second email or register at AIM )
    The options at AIM are to use your existing email or create new name and link the existing only for Password recovery
    MobileMe (@me.com ending names) were valid Emails addresses, Apple IDs AND a Valid AIM Screen Name
    @mac.com names look like emails but are only Apple IDs and iChat/AIM Valid Screen Names.
    The AIM registration page seems to be pushing you to register [email protected] This is relatively new and I have not followed through the pages to find out if it a valid AIM email (Previously you could register a name without an @whatever.com suffix)
    8:16 PM      Friday; June 10, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.7)
     Mac OS X (10.6.7),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

    Question:-
    So I have my current [email protected] email in iChat as I thought as I had linked that to an Apple ID it was a Valid iChat Name.  It keeps coming up with a UserName or Password Invalid message.  What do I do next ?
    Answer:-
    Open iChat
    Go to the Menu under the iChat name in the Menu Bar and then Preferences and then Accounts in the new window.
    Commonly written as iChat > Preferences > Accounts as directions/actions to take.
    If it displays with a Yellow running name in the list you have a choice.
    Either register it at AIM (I would use a different password to the ISP Login) and then change the password only in iChat  (It may take you to confirm any Confirmation email from AIM first) in iChat > Preferences > Accounts
    Or you register a new Name at AIM (Or at @mac.com) and enter that (details below)
    If you have a Blue Globe name  (@mac.com) that will not Login the chances are that it the password that is the issue.
    Apple lets you create longer passwords than can be used with the AIM Servers.
    Change the Password at iForgot to no more than 16 characters.
    Then change the password in iChat as details above.
    Adding a new Account/Screen Name in iChat (that is valid with the AIM servers)
    Open iChat if not launched.
    Go to iChat Menu > Preferences > Accounts
    Click the Add ( + )  Button at the bottom of the list.
    Choose in the top item drop down either @Mac.com or AIM depending on what you registered
    Add the name (with @mac.com the software will add the @mac.com bit)
    Add in the password.  (If you don't add it now iChat will ask you each time you open it)
    Click Done.
    The Buddy List should open (New Window)
    The Accounts part of the Preferences should now have the new name and you should be looking at the details.
    You can add something in the Description line which will then title the Buddy List (Useful when you have two or more names) and make it show up as that in the iChat Menu > Accounts and the Window Menu of iChat when logged in.
    You can then highlight any other Account/Screen Name you don't want to use and use the Minus ( - ) Button to delete it.
    8:39 PM      Friday; June 10, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.7)
     Mac OS X (10.6.7),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • HT201401 my home button is not working don't know why.my mobile phone is in warranty so please repair it or give me another phone so i can use it.please solve my problem i am in tension because of this problem

    my home button is not working don't know why.my mobile phone is in warranty so please repair it or give me another phone so i can use it.please solve my problem i am in tension because of this problem

    either you can call apple care
    or
    alternatively take it back to the reseller and have them give you new phone . unless obviously the button broke down due to mishandling

  • Key combination Shift+Alt+Cmd+D does not work in Indesign CC, why not?

    Key combination Shift+Alt+Cmd+D does not work in Indesign CC, why not?

    Is it assigned to something in the shortcut set you are using?

  • PLEASE HELP - Simple movieclip click to URL is NOT working... Why???

    I've tried over 4 tutorials to make my movieclip link to a URL. It's just not working for some reason...
    Here is my code.
    ondemand.addEventListener(MouseEvent.CLICK,goThere);
    function goThere(e:MouseEvent){
    var request:URLRequest = new URLRequest("www.money.net");
    navigateToURL(request);
    ondemand.buttonMode = true;
    ondemand.useHandCursor = true;
    stop();
    ondemand is a movieclip instance with a PNG image of text.
    This should work!! There are no compilation errors...
    No mouse cursor change on hover... just like nothing is there.
    Please help...   

    I am overall confused by your description of what you have, especially when you get to doubleclicking the movie and assigning code in it.
    In any case, you need to assign the name (the same name) to every instance of a tweened object. The lack of a name in earlier frames will be inherited by instances in subsequent frames
    I'm confused about your mention of 3 instances being in the library.  Just for clarity, an instance is a library symbol (or an object) that you place on the stage.  If you place two of the same objects on the stage, then you have 2 instances.  Items in the library are instance-wanna-bes.  If you have three different symbols in the library, and you are tweening them as if they were the same, your tween can't possibly work.

  • Mail yahoo pop access not working.

    This has been going on for 2 days now. Re set up my account in mail but nothing just the ! next to the mailbox. Anyone else having problems?

    Sending an email is something totally different again - you can send yourself or anyone else an email to any email address.
    You can also send or forward any email while on your Yahoo account to yourself or anyone else.
    Setting up Yahoo to automatically forward emails to your home email address is something else. Here is an excerpt from Yahoo Help:
    +The ability to access Yahoo! Mail using an email reader program such as Outlook, Eudora, or Thunderbird is only available to customers of our premium Yahoo! Mail Plus service. To determine whether you have purchased this service, please visit the My Services page.+
    Although this does not mention Apple Mail, it functions exactly like Outlook, etc. so it will not work. Here is the link to the entire help page:
    http://help.yahoo.com/l/us/yahoo/mail/yahoomail/mailplus/pop/pop-35.html;_ylt=An EHIP08O6GRC7cEYzjbTbe7myN4
    I have no idea why it might have worked for you previously, but according to Yahoo, it cannot be done unless you pay for the service.
    So, unless I've totally misunderstood what you are trying to say, I do not have a different answer and it does not have anything to do with your Mac or OS.

  • Expression using Map access not working....

    I am attempting to use the ability to access a Map by key from a binding expression on the jsp. I have extended HashMap and overridden the get method in order to return a Boolean from the get(key) method.
    This works:
    rendered="#{bean.enabledFunctionSecurityMap['key1']}"
    it ends up calling the bean.getEnableFunctionSecurityMap().get("key1");
    This should work also but doesn't:
    rendered="#{bean.enabledFunctionSecurityMap['key1'] or bean.enabledFunctionSecurityMap['key2']}"
    Any reason why a single Boolean returned from a Map would work fine, but a more complex statement with 2 Booleans will not work. Doing a statement like this just accessing multiple boolean getter functions on a bean works, how come access muiltiple Map returns does not?
    Any help is appreciated.
    Thanks,
    Mike

    All righty then, I solved my own problem.
    There were actually 2 issues.
    1. I could so far only get this to work if the Overridden Map Object is registered as a manged-bean itself.
    2. I was testing to see if it worked by using System.out.println methods in my overridden get() method. Appearantly the JSF EL is smarter than I am. If you have #{binding1 or binding2} and binding1 evaluates to True, binding2 is never evaluated. The expression is short circuited and returns true... DUH....
    So this expression fires both bindings....
    rendered="#{enabled['key1'] and not enabled['key2']}"
    Where enabled is...
    <managed-bean>
    <managed-bean-name>enabled</managed-bean-name>
    <managed-bean-class>security.EnabledFunctionSecurityMap</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    Next step will be to try and figure out how to get this to work where the EnabledFunctionSecurityMap is on another bean.
    Hope this helps anyone trying to do the same.
    Mike

  • WRT600N WRT310N PPTP will not work in some cases

    Hello All,
    This is more of a warning than a request for help. If you are using the WRT600N or the WRT310N and you need to use PPTP VPN connections, these are not the routers for you!
    The PPTP support only work with MS PPTP Servers, it does not work with other VPN routers such as Nortel Contivity's and others.
    Please read other threads in this forum, in most cases the wireless connectivity does not work properly, and the router is prone to freeze, requiring it to be hard booted often.
    (Mod note: Edited due to non-compliance to forums guidelines.)
    Message Edited by OnnagokorO on 05-24-2008 08:37 PM

    Just to update everyone... Firmware Version 1.01.36 Build 3 does not fix the PPTP issues with the WRT600N router.

  • IOS 8.02 guided access not working for Ipad 2

    Will the next update for iOS 8 fix the issue for guides access for Ipad 2? Issue; function not working at all. And when will this update come?
    We have now tried everything we can think of. Reset settings, totale factory reset etc. This doen both on the Ipad and thorugh iTunes.
    For us the Ipad got useless with iOS 8 as we us it as a visitor kiosk using the app SIGN IN. We really regret updating.... please fix asap

    I can confirm that this works on 3rd Generation iPads.  But not 2nd Generation iPads.  I have found that if Guided access was enabled prior to the upgrade it might reset in this process.
    Turn off Guided Access in Accessibility / Settings.
    Hard reboot.  (Hold Home and Lock buttons for 7 seconds)
    Turn on Guided Access in Accessibility / Settings.  Reset Passcode.
    Anyone have luck with a newer model?

  • ADSSO Service Not Working on Secondary CAS when done Failover

    We are running NAC OS 4.9.2 in OOB L2 Virtual Gateway...
    We have CAS Cluster
    Primary CAS -- 10.245.220.5  & Secondary CAS -- 10.245.220.6 and Service-IP 10.245.220.4
    When in HA Cluster Primary is Active and Secondary is Standby Ok , ADSSO is Working and Service is started
    We have capture details of same .
    10.245.220.5
    2013-04-18 15:46:21.833 +0530  Thread-70 INFO  com.perfigo.wlan.jmx.adsso.GSSServer               - GSSServer - done building kdc list for domain kotakgroup.com
    2013-04-18 15:46:21.833 +0530  Thread-70 INFO  com.perfigo.wlan.jmx.adsso.GSSServer               - GSSServer - KDC(s) :[kgp-gor-dc01.kotakgroup.com, kgp-gor-dc02.kotakgroup.com, kgp-gor-dc03.kotakgroup.com, kgp-gor-dc04.kotakgroup.com, kgp-gor-dc05.kotakgroup.com, kgp-dr-dc01.kotakgroup.com, kgp-dr-dc03.kotakgroup.com, kgp-dr-dc02.kotakgroup.com]
    2013-04-18 15:46:21.833 +0530  Thread-70 INFO  com.perfigo.wlan.jmx.adsso.GSSServer               - GSSServer - writeKrbFile: writing to file ../conf/krb.txt
    2013-04-18 15:46:21.833 +0530  Thread-70 INFO  com.perfigo.wlan.jmx.adsso.GSSServer               - GSSServer - writeKrbFile: wrote to file ../conf/krb.txt
    2013-04-18 15:46:21.834 +0530  Thread-70 INFO  com.perfigo.wlan.jmx.adsso.GSSServer               - GSSServer - creating login context ...
    2013-04-18 15:46:21.834 +0530  Thread-70 INFO  com.perfigo.wlan.jmx.adsso.GSSServer               - GSSServer - created login context ...javax.security.auth.login.LoginContext@bb3f71
    2013-04-18 15:46:39.207 +0530  Thread-70 INFO  com.perfigo.wlan.jmx.adsso.GSSServer               - Notifying GSSServer status Started
    2013-04-18 15:47:07.540 +0530  Timer-3 INFO  com.perfigo.wlan.jmx.adsso.GSSRetrier              - GSSR - Windows SSO is running
    When Primary is rebooted and Secondary becomes Active Ok , ADSSO is not working and Service is not started
    10.245.220.6
    2013-04-18 15:50:42.933 +0530  Timer-3 INFO  com.perfigo.wlan.jmx.adsso.GSSServer               - Server starting server ...
    2013-04-18 15:50:42.933 +0530  Timer-3 INFO  com.perfigo.wlan.jmx.adsso.GSSServer               - Server is now running ...
    2013-04-18 15:50:42.933 +0530  Thread-68 INFO  com.perfigo.wlan.jmx.adsso.GSSServer               - GSSServer - SPN : [casadsso/[email protected]]
    2013-04-18 15:50:42.933 +0530  Thread-68 INFO  com.perfigo.wlan.jmx.adsso.GSSServer               - GSSServer - building kdc list for domain kotakgroup.com
    2013-04-18 15:50:42.934 +0530  Thread-68 ERROR com.perfigo.wlan.jmx.adsso.GSSServer               - Unable to start server ... kotakgroup.com.
    2013-04-18 15:50:42.937 +0530  Thread-68 INFO  com.perfigo.wlan.jmx.adsso.GSSServer               - Notifying GSSServer status Stopped
    2013-04-18 15:50:42.937 +0530  Thread-68 INFO  com.perfigo.wlan.jmx.adsso.GSSServer               - server is exiting .
    Our Observation is krb.txt is not getting generated when Secondary is Active Ok ...
    Can any one suggest how to fix the issue...

    Hi,
    Can you check and see if dns and ntp are accurate and can you verify your AD environment? What version of domain controllers are in service if there are a mix then other steps like modifying a few files maybe needed.
    Also was the secondary CAS replaced or reimaged recently?
    Thanks,
    Sent from Cisco Technical Support iPad App

  • Field AWKEY in BKPF not working due to case sensitive

    Hi,
    I have reference key as cpv8852MLTD2013, but when i enter this in AWKEY field in BKPF it gets converted to upper case as "CPV8852MLTD2013".
    Due to this it is not working, and data is not executing..
    Please help..
    Durga

    If the field doesn't contain the Lower case, then how can it will take the small letter ?
    If the tick option is active, then you can use Capital and Small both letters in this field.
    If the tick option is not active, then you can use only Capital Letters in this field.
    You can check the field SGTXT for the same. You can see the Lower Case is ticked for the field, that because the field can contain the Capital and Small letters both. But the tick option is not ticked for the field AWKEY, so you can't use Capital and Small letter both for the field.

  • "C" key not working in lower Case.

    Lower Case "C" key not working, but Cap C and Shift C and Command C work fine. "C" key also works in safe boot mode. How Can I fix this?

    Open the Speech pane of System Preferences and check whether either the listening key or the speech key has become set to that keystroke; if so, change the setting.
    (58960)

  • Help needed "tabEnabling" not working in simple login page - Flex

    Hello Friends,
    I need a small help in Flex. I am doing a simple login page application  in FlashBuilder 4.0 & i have kept 2 input boxes like Login,Password  and a submit buttion. On clicking the button i am calling a method, so  far everything is working fine.... But some how tabenabling is not  working. suppose if you are in login inputbox and i press "tab key" it  has to go to password input box.. but its not working. can any one help  me on this, why it is not working. i have tried all the attempts using  tabEnabled = "true". but stil i am failing to do this.
    your help would be appreciated.
    Rajesh
    Message was edited by: Rajeshb_Flash

    <?xml version="1.0" encoding="utf-8"?>
    <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml"
       width="100%"
       height="100%"
       verticalAlign="middle"
       horizontalAlign="center">
    <mx:Script>
      <![CDATA[
       import com.tel.model.EventConstants;
       import mx.controls.Alert;
       import mx.managers.CursorManager;
       import mx.rpc.events.FaultEvent;
       import mx.rpc.events.ResultEvent;
       import mx.rpc.http.mxml.HTTPService;
       private var httpService:HTTPService;
       public var userID:String = "";
       public function init():void{
       private function mouseClickSubmit():void{
        if(userName.text != "" && password.text != ""){
         userID = userName.text;
         initService();
        }else{
         if(userName.text == ""){
          Alert.show("Please enter 'User Name'.","Alert!")
         }else if(password.text == ""){
          Alert.show("Please enter 'Password'.","Alert!")
       private function initService():void{
        var params:Object = new Object();
        params["userName"] = userName.text;
        params["password"] = password.text;
        httpService = new HTTPService();
        httpService.showBusyCursor = true;
        httpService.resultFormat = "xml";
        httpService.method=URLRequestMethod.POST;
        httpService.addEventListener(ResultEvent.RESULT, httpServiceResultHandler);
        httpService.addEventListener(FaultEvent.FAULT, httpServiceFaultHandler);
        httpService.url = "Login.action";
        httpService.send(params);
       private var boolFirstRun = true;
       private function httpServiceResultHandler(event:ResultEvent):void{
        httpService.removeEventListener(ResultEvent.RESULT, httpServiceResultHandler);
        httpService.removeEventListener(FaultEvent.FAULT, httpServiceFaultHandler);
        httpService = null;
        var resultXML:XML = new XML(event.result.toString());
        if(resultXML.children().toString() == "true"){
         boolFirstRun = false;
         dispatchEvent(new Event(EventConstants.LOGIN_SUCCESS))
        }else{
         userName.text = "";
         password.text = "";
         Alert.show("Login Failed! Invalid 'User Name' or 'Password'.","Alert")
       private function httpServiceFaultHandler(event:FaultEvent):void{
        httpService.removeEventListener(ResultEvent.RESULT, httpServiceResultHandler);
        httpService.removeEventListener(FaultEvent.FAULT, httpServiceFaultHandler);
        httpService = null;
      ]]>
    </mx:Script>
    <mx:Panel title="Login Page" width="400" height="300" styleName="loginPanel" verticalAlign="middle" horizontalAlign="center" backgroundImage="assets/images/hello.jpg" backgroundAlpha=".1">
       <mx:VBox width="260" height="95" styleName="loginBox" backgroundAlpha=".2">
       <mx:HBox width="100%">
        <mx:Label width="85" text="User Name" styleName="loginTextStyle"/>
        <mx:TextInput width="150" id="userName"/>
       </mx:HBox>
       <mx:HBox width="100%">
        <mx:Label width="85" text="Password" styleName="loginTextStyle"/>
        <mx:TextInput width="150" id="password" displayAsPassword="true"/>
       </mx:HBox>
       <mx:HBox width="100%">
        <mx:Spacer width="80%"/>
        <mx:Button label="Enter" id="submit" click="mouseClickSubmit()"/>
       </mx:HBox>
      </mx:VBox>
    </mx:Panel>
    </mx:VBox>

Maybe you are looking for

  • Unable to connect and yet...

    I have signal, and my iPad says that it is connected yet when I try to view a web page or play an online game the applications says there is no connection.  It is only hit and miss when I go as far a White City Oregon. I'm in Eagle Point and was told

  • SmartTalk won't finish setting up

    I've had Smart Talk for a while now and it's worked fine. However, I've now upgraded to iOS 7 and changed my mobile provider (from Vodafone to Orange, but kept the same number). As per other threads here about the iOS7 u/g I had to re-enter my BT ID

  • Enlarging a PDF

    This may be a silly question, but if I save an AI file as an 8x10 can someone print it as a 16x20 while still maintaining the quality if I have created outlines?

  • Photo exposure app?

    Is there an iPhone app that provides the shutter speed and f/stop of a picture that is taken with the iPhone? I'd like to use my iPhone as an exposure meter to set my pinhole camera. Thanks. Joel

  • NCS/Prime 1.2 search error

    On our NCS and now also on our recently upgraded Prime 1.2 we get the following error when doing a simple search in the search window at the top right of the screen: There was an error while parsing and rendering the content. (Tried to register widge