Johan Nyberg wrote:

> Hi, I don't know what I'm doing wrong. I'm trying to load an XML file
> into my Flex app, but I can't seem to be able to display any data that
> is residing as attributes in the XML file.
> 
> What have I missed?
> <snip>
> And here is an abbreviated version of the xml file:
> 
> 
> <?xml version="1.0" encoding="utf-8"?>
> <root>
>    <title>Kalle Anka</title>
>    <tables>
>      <table site="party" name="Deep Stack #1416111 (No DP)"
> game="Hold'em" limit="NL" stake="2/4" players="6" bigblind="400"
> pot="12400" hands="125" wait="0" flop="31"/>
>      <table site="party" name="Speed #1381943 (No DP)" game="Hold'em"
> limit="NL" stake="2/4" players="6" bigblind="400" pot="10300" hands="92"
> wait="3" flop="35"/>
> </tables>
> </root>

I didn't go through the code in detail, but one thing that jumps out at me
is that you have some problematic characters in the attributes. Try
replacing the apostrophe with &apos.

There is a lot of information on XML at <www.xml.com>. You can see a
discussion of illegal characters at
<http://www.xml.com/pub/a/2003/02/26/qa.html>.

Cordially,

Kerry Thompson

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to