Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7818499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T06:35:40+00:00 2026-06-02T06:35:40+00:00

I am migrating from AS2 to AS3 and ran into trouble grabbing nodes from

  • 0

I am migrating from AS2 to AS3 and ran into trouble grabbing nodes from XML. I am able to grab (and trace) the entire XML file in AS3 but want to be able to store the first tag as a node using firstChild and loop through the tags using nextSibling. But in AS3 the firstChild keeps coming up empty, when my previous AS2 code would actually grab the content. What am I doing wrong? (and I can’t call tags by their names because I reuse the code block for multiple xml files)

var eRoot = exampleXML.firstChild;
while (eRoot != null) {
  //do stuff
  eRoot= eRoot.nextSibling;
}

My test XML file:

<?xml version="1.0" encoding="UTF-8"?>
<content>
    <version>cd</version>
    <lessonlock>~-*~-*</lessonlock>
    <expiryDate>**#*#**##**##**##*##********###*</expiryDate>
    <isSpanish>true</isSpanish>
    <server>http://www.exampleSite.com</server>
</content>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T06:35:41+00:00Added an answer on June 2, 2026 at 6:35 am

    That’s because neither firstChild nor nextSibling exist as properties on an AS3 XML object. The way you are doing it, you are searching for the nodes <firstChild> and <nextSibling>.

    You should read the API for XML, and better yet, Adobe’s guide to E4X.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are migrating from one content system into another and have tons of HTML
We're currently migrating from NMock2 to RhinoMocks and we're having trouble replicating this code:
I'm migrating from C to Obj-C into Obj-C++. I'll be taking my course in
I'm migrating from the original file- based datastore to the sqlite version. I have
Migrating from textboxe to dropdownlist – Need to send value from a hard-coded dropdownlist
I am migrating from RichFaces 3.3 to RichFaces 4.1. In RichFaces 3.3 there was
We're migrating from one server to another and a VBA script to save attachments
So we are migrating from Informix to Sql Server. And I have noticed that
I started migrating from cucumber + webrat to cucumber + capybara. Now the behavior
Are there tools for migrating from one virtual machine type to another? E.g let's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.