actionscript 3 - getting data from xml tags that have : (colon in them) -


i using air build application search , show thumbnails deviantart request url getting resuts in form of rss feed following simplicity showing code in have question

we can use tag

trace(myxml.channel.item[0].title); 

but tags media:content

trace(myxml.channel.item[0].media:content); 

but not work colons confusing me

first of if there colons in xml known namespace otherwise simple tag. pasre data namespace little different simple tags. can show example if share xml format can write appropreate code you.

here sample code:

xmldata.ignorewhitespace=true; var awsns:namespace = new namespace("http://www.aws.com/aws"); xmldatavo.state=xmldata..awsns::["city-state"]; xmldatavo.country=xmldata..awsns::["country"]; xmldatavo.sunrisehour=xmldata..awsns::sunrise..awsns::["hour"].@number; xmldatavo.sunriseminute=xmldata..awsns::sunrise..awsns::["minute"].@number; 

my xml format this

<aws:weather xmlns:aws="http://www.aws.com/aws">     <aws:city-state citycode="64469">delhi,  in</aws:city-state>     <aws:country>india</aws:country>       <aws:sunrise>           <aws:hour number="7" hour-24="07"/>           <aws:minute number="13"/>        </aws:sunrise>  </aws:weather> 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -