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 899729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T15:16:06+00:00 2026-05-15T15:16:06+00:00

I’m trying to load some XML into flash to populate some dynamic text fields.

  • 0

I’m trying to load some XML into flash to populate some dynamic text fields. The problem I have is that some of the xml tags seem to be ignored by flash.

Here’s the XML I’m loading:

<?xml version="1.0" encoding="UTF-8" ?><xml>
  <node>
    <nid>2</nid>
    <name>Antonia O&#039;Neill</name>
    <jobtitle>Director</jobtitle>
    <photo>http://202.58.37.93/dev.mapandpage.com.au/backend/sites/default/files/MAP-holder.jpg</photo>
    <bio>&lt;p&gt;Antonia formed Map and Page in 2007 as an independent subsidiary of Macquarie Radio Network. In her role as Director she oversees corporate affairs and community relations for Macquarie Radio Network (2GB + 2CH), the Australian Jockey Club, John Singleton, Harvey Norman, Magic Millions, National Rugby League, and Maserati.&lt;/p&gt;

&lt;p&gt; Her expertise in the full spectrum of communications; both corporate and consumer has seen the rapid growth of client base and team at Map and Page.&lt;/p&gt;
&lt;p&gt; Antonia has more than a decade&amp;rsquo;s experience in the free-to-air, commercial television industry having worked across a range of business units for the Seven Network (TV) including production, sport, publicity, events and sponsorship from 1995-2003.&lt;/p&gt;
&lt;p&gt; Antonia managed event marketing and client relations across four Olympic Games, Rugby World Cups, Commonwealth Games and Melbourne Cup Carnivals reporting directly to the CEO.&lt;/p&gt;
&lt;p&gt; In 2003, Antonia co-founded Launch Group a full service communications agency and in 2007 founded Map and Page in partnership with MRN...&lt;/p&gt;</bio>

  </node>
  <node>
    <nid>3</nid>
    <name>Julia Everingham</name>
    <jobtitle>Group Account Director</jobtitle>
    <photo>http://202.58.37.93/dev.mapandpage.com.au/backend/sites/default/files/MAP-holder_0.jpg</photo>
    <bio>&lt;p&gt;In her role as Group Account Director, Julia specialises in the development of strategic public relations campaigns working across a range of clients including the Australian Jockey Club (AJC), Coca-Cola Amatil, Bluetongue, Maserati, Percy Marks, Surf Life Saving Australia and Diamond Guild of Australia.&lt;/p&gt;

&lt;p&gt; Julia brings more than fifteen years of public relations experience to MAP having previously established and run the highly successful Oxygen Marketing Communication. Her experience includes developing, implementing and managing communication programs for major brands and events.&lt;/p&gt;
&lt;p&gt; Her marketing communications expertise spans a broad array of industry groups including consumer, sport, telecommunications and media. Julia&amp;rsquo;s experience includes communication specialty areas of publicity and promotion, sports and event public relations, consumer marketing and luxury goods promotion.&lt;/p&gt;
&lt;p&gt; Julia has worked on both client and agency side of the business. She provides clients with highly experienced communication counsel with strong expertise in media management and leveraging, with an extensive media network.&lt;/p&gt;</bio>
  </node>

</xml>

Here’s the actionscript:

    var xmlLoader:URLLoader = new URLLoader();
var xmlData:XML = new XML();
//ignore white space
xmlData.ignoreWhite=true;

xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
var theURL:String = ("http://202.58.37.93/dev.mapandpage.com.au/backend/?q=xml/team2&cachebuster=" + new Date().getTime());
trace(theURL);
xmlLoader.load(new URLRequest(theURL));

function LoadXML(e:Event):void {

xmlData = new XML(e.target.data);
ParseTeam2(xmlData);

}
function ParseTeam2(bookInput:XML):void  {

trace("XML Output");
trace("------------------------");
trace(bookInput);
}

Flash ignores the <jobtitle> and <photo> tags.

Does anyone have any idea why?

  • 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-05-15T15:16:07+00:00Added an answer on May 15, 2026 at 3:16 pm

    I’ve tried your xml file exactly and it works for me as expected. I can only suggest you check you are saving in UTF-8 and using Unix line-endings.

    package
    {
    import flash.display.Sprite;
    import flash.events.Event;
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    
    public class XMLTest extends Sprite
    {
        public function XMLTest()
        {
            var xmlLoader:URLLoader = new URLLoader();
            xmlLoader.addEventListener(Event.COMPLETE, loadXML);
            var theURL:String = ("XMLTest.xml");
            xmlLoader.load(new URLRequest(theURL));
        }
    
        private function loadXML(event:Event):void
        {
            var xmlData:XML = new XML(URLLoader(event.target).data);
    
            // all of these trace the expected values:
            trace(xmlData);
            trace(xmlData..jobtitle);
            trace(xmlData..photo);
        }
    }
    }
    

    with xml:

        <?xml version="1.0" encoding="UTF-8" ?><xml>
      <node>
        <nid>2</nid>
        <name>Antonia O&#039;Neill</name>
        <jobtitle>Director</jobtitle>
        <photo>http://202.58.37.93/dev.mapandpage.com.au/backend/sites/default/files/MAP-holder.jpg</photo>
        <bio>&lt;p&gt;Antonia formed Map and Page in 2007 as an independent subsidiary of Macquarie Radio Network. In her role as Director she oversees corporate affairs and community relations for Macquarie Radio Network (2GB + 2CH), the Australian Jockey Club, John Singleton, Harvey Norman, Magic Millions, National Rugby League, and Maserati.&lt;/p&gt;
    
    &lt;p&gt; Her expertise in the full spectrum of communications; both corporate and consumer has seen the rapid growth of client base and team at Map and Page.&lt;/p&gt;
    &lt;p&gt; Antonia has more than a decade&amp;rsquo;s experience in the free-to-air, commercial television industry having worked across a range of business units for the Seven Network (TV) including production, sport, publicity, events and sponsorship from 1995-2003.&lt;/p&gt;
    &lt;p&gt; Antonia managed event marketing and client relations across four Olympic Games, Rugby World Cups, Commonwealth Games and Melbourne Cup Carnivals reporting directly to the CEO.&lt;/p&gt;
    &lt;p&gt; In 2003, Antonia co-founded Launch Group a full service communications agency and in 2007 founded Map and Page in partnership with MRN...&lt;/p&gt;</bio>
    
      </node>
      <node>
        <nid>3</nid>
        <name>Julia Everingham</name>
        <jobtitle>Group Account Director</jobtitle>
        <photo>http://202.58.37.93/dev.mapandpage.com.au/backend/sites/default/files/MAP-holder_0.jpg</photo>
        <bio>&lt;p&gt;In her role as Group Account Director, Julia specialises in the development of strategic public relations campaigns working across a range of clients including the Australian Jockey Club (AJC), Coca-Cola Amatil, Bluetongue, Maserati, Percy Marks, Surf Life Saving Australia and Diamond Guild of Australia.&lt;/p&gt;
    
    &lt;p&gt; Julia brings more than fifteen years of public relations experience to MAP having previously established and run the highly successful Oxygen Marketing Communication. Her experience includes developing, implementing and managing communication programs for major brands and events.&lt;/p&gt;
    &lt;p&gt; Her marketing communications expertise spans a broad array of industry groups including consumer, sport, telecommunications and media. Julia&amp;rsquo;s experience includes communication specialty areas of publicity and promotion, sports and event public relations, consumer marketing and luxury goods promotion.&lt;/p&gt;
    &lt;p&gt; Julia has worked on both client and agency side of the business. She provides clients with highly experienced communication counsel with strong expertise in media management and leveraging, with an extensive media network.&lt;/p&gt;</bio>
      </node>
    
    </xml>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 446k
  • Answers 446k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Something like: echo $itemgotten->getElementsByTagNameNS( "http://xml.weather.yahoo.com/ns/rss/1.0","condition")->item(0)-> getAttribute("temp"); The key is that… May 15, 2026 at 7:23 pm
  • Editorial Team
    Editorial Team added an answer The easiest way is to add the URL of the… May 15, 2026 at 7:23 pm
  • Editorial Team
    Editorial Team added an answer Neither. It is not a distributed DB, and it is… May 15, 2026 at 7:23 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.