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'Neill</name>
<jobtitle>Director</jobtitle>
<photo>http://202.58.37.93/dev.mapandpage.com.au/backend/sites/default/files/MAP-holder.jpg</photo>
<bio><p>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.</p>
<p> 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.</p>
<p> Antonia has more than a decade&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.</p>
<p> 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.</p>
<p> In 2003, Antonia co-founded Launch Group a full service communications agency and in 2007 founded Map and Page in partnership with MRN...</p></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><p>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.</p>
<p> 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.</p>
<p> Her marketing communications expertise spans a broad array of industry groups including consumer, sport, telecommunications and media. Julia&rsquo;s experience includes communication specialty areas of publicity and promotion, sports and event public relations, consumer marketing and luxury goods promotion.</p>
<p> 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.</p></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?