Question about E4X syntax.

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default Question about E4X syntax.

    Hello,

    I have the following xml:
    <med-condition>
    <abnormal-weight type="boolean">true</abnormal-weight>
    </med-condition>

    I'm just wondering how I can access the med-condition node with E4X syntax
    since I can't say event.result.med-condition because of the hyphen. Any Ideas?

    Thanks,
    Ruben

    rpierich Guest

  2. Similar Questions and Discussions

    1. upload syntax question
      I just bought some web space which has mysql capabilities..... I am using SSH and have created a database and a table........ now I would like to...
    2. Simple syntax question
      Hi I don't remember how to get the diplayed result broken in multiple lines. The command: mysql> SHOW INDEX FROM recentchanges; gives one...
    3. Question on syntax...
      I've seen this a few times in some code examples... XXX::XXX What do the 2 colons signify?
    4. SQL Syntax Question???
      I have 2 tables. One that has all my products (table1) and another table that matches my products with a invoice number (table2). What I want to...
    5. Transact-SQL syntax question
      Nico, Please Refer http://www.sqlmag.com/Articles/Index.cfm?ArticleID=8687&pg=1 Hope this helps. Thanks Rajan Murthy
  3. #2

    Default Re: Question about E4X syntax.

    use:

    event.result["med-condition"]
    Craig Grummitt Guest

  4. #3

    Default Re: Question about E4X syntax.

    That didn't work. I tried event.result["med-condition"]["abnormal-weight"]
    rpierich Guest

  5. #4

    Default Re: Question about E4X syntax.

    the easiest approach would be to set up a breakpoint and use the debugger to
    pause inside the event handler and check what event.result actually contains.
    hard for me to tell as i'm not sure which event you're trapping.

    if <med-condition> is the root tag, however, and event.result is the xml
    object, then to arrive at abnormal-weight tag, you would use:

    event.result["abnormal-weight"]

    Craig Grummitt Guest

  6. #5

    Default Re: Question about E4X syntax.

    I tried to work this out but could not. I hope someone else shows how to do this, if it can be done.
    Greg Lafrance Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139