Posted By

darkbaron1912 on 02/17/11


Tagged

xml


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

weavermedia
merritt212


xml parsing


 / Published in: ActionScript 3
 

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <config>
  3. <linksetting>
  4. <link attr="imagelink" method="xml" value="./xml/image.xml"/>
  5. <link attr="getimagelink" method="post" value="./xml/image.xml"/>
  6. <link attr="removelink" method="post" value=""/>
  7. </linksetting>
  8.  
  9. </config>
  10.  
  11. for (var i:int = 0; i < theLangXML.linksetting.link.length(); i++)
  12. {
  13. var item:XML = theLangXML.linksetting.link[i];
  14. listSetting.push(new LinkSettingVO(item.@attr, item.@value,item.@method));
  15. }

Report this snippet  

You need to login to post a comment.