나는 액션 스크립트 2.0액션 스크립트 2.0 읽기 XML 파일
와 XML 파일을 읽기 위해 노력하고있어 문제가 난 단지 자신의 위치를 참조하여 태그의 값을 읽어 내 코드를 만들 수있다.
태그 이름을 참조하여 XMl 파일에서 값을 검색하는 방법은 무엇입니까?
직접 childNodes
배열에서 이름으로 노드를 검색 할 수 없습니다
<weather>
<current>
<icon>Partly cloudy</icon>
<temphigh>33</temphigh>
<templow>24</templow>
<humhigh>55</humhigh>
<humlow>95</humlow>
</current>
<forecast1>
<day>Monday</day>
<icon>rss_ts2</icon>
<temphigh>33</temphigh>
<templow>24</templow>
</forecast1>
<forecast2>
<day>Tuesday</day>
<icon>rss_ts2</icon>
<temphigh>32</temphigh>
<templow>23</templow>
</forecast2>
<forecast3>
<day>Wednesday</day>
<icon>rss_ts2</icon>
<temphigh>32</temphigh>
<templow>23</templow>
</forecast3>
</weather>
>의 Obj 파서에 http://proto.layer51.com/ :
이 링크는 XML의 AS2 문서 및 AS3을 처리하는 방법에 대한 차이를 설명 – ocodo