Groups | Blog | Home
all groups > flash actionscript > january 2005 >

flash actionscript : XML help


thoand
1/13/2005 8:29:57 PM
Hi I am trying to get my data into flash here:
http://www.tinde.no/pl/47/property_rss.pl?ClientRefPARENT=T8000&_order=Creat
ed+DESC&amp;_limit=3 What I need is to get each <item> for (var i = 1; i < 6;
i++) { trace(XmlObj.firstChild.childNodes.childNodes[0])
trace(XmlObj.firstChild.childNodes.childNodes[1])
trace(XmlObj.firstChild.childNodes.childNodes[2])
trace(XmlObj.firstChild.childNodes.childNodes[3])
trace(XmlObj.firstChild.childNodes.childNodes[4]) trace('\n'); } I am
starting i at 1 since I do not want the <channel> node but my problem is that
I get this output: <title>Prosjektert Startbo leilighet i 6. etasje.</title>
<link>http://www.tinde.no/?T1048-70905003</link> <description>Leilighetene blir
liggende i et attraktiv nyetablert boligomr?de. Flott boligkompleks med
gangavstand til Bergen sentrum. Kort vei til alle fasiliteter, skole,
treningssenter, butikker samt offentlig kommunikasjon.</description>
<property:type>pr02</property:type> <property:postcode>5161</property:postcode>
<property:address>Damsg?rdsveien 90</property:address> After <description> the
order does not make any sense anymore, does anyone knows why? I guess putting a
: in the node should not do anything, or does it? Could anyone please help me
out here thanks in advance, best regards T
NSurveyor
1/13/2005 8:40:06 PM
thoand
1/13/2005 10:40:47 PM
Hi I am trying to get my data into flash here:
http://www.tinde.no/pl/47/property_rss.pl?ClientRefPARENT=T8000&amp;_order=Creat
ed+DESC&amp;_limit=3 What I need is to get each <item> for (var i = 1; i < 6;
i++) { trace(XmlObj.firstChild.childNodes.[ i].childNodes[0])
trace(XmlObj.firstChild.childNodes.[ i].childNodes[1])
trace(XmlObj.firstChild.childNodes.[ i].childNodes[2])
trace(XmlObj.firstChild.childNodes.[ i].childNodes[3])
trace(XmlObj.firstChild.childNodes.[ i].childNodes[4]) trace('\n'); } I am
starting i at 1 since I do not want the <channel> node but my problem is that
I get this output: <title>Prosjektert Startbo leilighet i 6. etasje.</title>
<link>a link</link> <description>Leilighetene blir liggende i et attraktiv
nyetablert boligomr?de. Flott boligkompleks med gangavstand til Bergen sentrum.
Kort vei til alle fasiliteter, skole, treningssenter, butikker samt offentlig
kommunikasjon.</description> <property:type>pr02</property:type>
<property:stcode>5161</propertyostcode> <property:address>Damsg?rdsveien
90</property:address> After <description> the order does not make any sense
anymore, does anyone knows why? I guess putting a : in the node should not do
anything, or does it? Could anyone please help me out here
AddThis Social Bookmark Button