A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Extracting tags from nodes

  1. #1
    Perverse Futurist villain2's Avatar
    Join Date
    Sep 2002
    Location
    Baltimore, MD
    Posts
    891

    Extracting tags from nodes

    How do you extract the values for d, t and dt in this xml node?:

    PHP Code:
    <day d="1" t="Sunday" dt="Dec 26"
    I've been extracting the normal
    PHP Code:
    <hi>45</hi
    nodes easily, but the above line has values inside the brackets instead of BETWEEN the brackets.

    Any ideas?
    Last edited by villain2; 12-26-2004 at 06:42 PM.

  2. #2
    Perverse Futurist villain2's Avatar
    Join Date
    Sep 2002
    Location
    Baltimore, MD
    Posts
    891
    bump

  3. #3
    ·»¤«· >flashl!ght<'s Avatar
    Join Date
    Jun 2003
    Posts
    746
    You didn't look at the F1 reference at all, did you? ;-)

    .attributes.d

    .attributes.t

    .attributes.td
    >flashl!ght<
    All the normal names were taken.
    Ron Paul was right.

  4. #4
    Perverse Futurist villain2's Avatar
    Join Date
    Sep 2002
    Location
    Baltimore, MD
    Posts
    891
    Fair enough ... no I didn't. Thanks for "lighting the way" Flashl!ght

  5. #5
    ·»¤«· >flashl!ght<'s Avatar
    Join Date
    Jun 2003
    Posts
    746
    np

    you might find yourself using attributes more and more instead of huge tag structures, since its possible to use 'associative' references, instead of numbers and junk. I know I have.

    And don't forget to check out the XML(object) in the F1 help, lot's of interesting stuff in there
    >flashl!ght<
    All the normal names were taken.
    Ron Paul was right.

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center