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

  • SEARCH
  • Home
  • 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 8027715
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T23:53:33+00:00 2026-06-04T23:53:33+00:00

I have this simple XML file, witch I’m calling in a SWF file. This

  • 0

I have this simple XML file, witch I’m calling in a SWF file. This is the code:

<goals1>
<minute>32</minute>
<name>Name</name>
<minute>35</minute>
<name>Name2</name>
</goals1>

So these nodes are going to be empty. They are even not going to exist. But I’m going to put the paths in to the AS2. So my question is: – What to do to make them not showing “undefined” in the swf file. In other words I need to display content when there is any.

Thank You!

  • 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-04T23:53:35+00:00Added an answer on June 4, 2026 at 11:53 pm

    If you got no whitespace, you’d simply check is that node is empty or not.

    if (example.nodeValue != '') {
        // Run your stuff
    }
    

    You could also run a for() based on the length of an xml object to only execute given children.

    Something like this:

    xmlFeed.onLoad = function() {
        // Pre defined and go the depth you need
        parsedXML = xmlFeed.firstChild.firstChild.childNodes;
    
        for (var i:Number = 1; i <= parsedXML.length; i++) {
            if(parsedXML[i].firstChild.nodevalue != "") {
                // Run your stuff here
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this simple XML file : <?xml version=1.0 encoding=utf-8 ?> <Artists> <artist artistId=1>
I have an XML file with data stored like this: <myxml> <item name=column18>88744544</item> <item
Lets say i have this XML file: <attributes> <units> <civilians> <unit> <name>Settler</name> <stats> <attack>26</attack>
I have a simple XML file, items.xml: <?xml version=1.0 encoding=UTF-8 ?> <items> <item> <name>mouse</name>
I have a simple xml file that looks like this: <?xml version=1.0 encoding=UTF-8 standalone=yes
I have a simple XML file that looks something like: <Institutions> <FI name =
I have a simple XML file that looks like this: <?xml version=1.0 ?> <devices>
It seems I can't easily have an XSD declaration for this simple XML <root>
I have a simple problem with XML got from database. Now, this XML can
I have this simple code that speaks for itself. <script language='javascript"> function check() {}

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.