A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: XML object structure

  1. #1
    Member
    Join Date
    Jan 2006
    Posts
    34

    XML object structure

    Can someone explain to me the XML object's structure? I look at the example and the help and I do not get why I'm getting an error every time I do:

    Code:
    if (xmlFile.loaded)
    {
    	element ("Edit 5").text = xmlFile.childNodes[0].childNodes[0].attributes["title"];
    }
    Object is not an array on line 3 element ("Edit 5").text = xmlFile.childNodes[0].childNodes[0].attributes["title"]
    1 errors found
    ...Why???

  2. #2
    Senior Member
    Join Date
    Dec 2006
    Posts
    274
    Alternative style seems to work, I dunno why the first one did not.

    element ("Edit 5").text = xmlFile.childNodes[0].childNodes[0].attributes.title;

  3. #3
    Member
    Join Date
    Jan 2006
    Posts
    34
    Yay! Thanks a billion.

    I dunno why the first one did not.
    Maybe it be cause I'm using the trial?

  4. #4
    Senior Member
    Join Date
    Dec 2006
    Posts
    274
    I have full version and it does same..

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