顯示廣告
隱藏 ✕
※ 本文轉寄自 tomin.bbs@tomin.twbbs.org
看板 coding
作者 tomin (Asperger syndrome)
標題 Re: XML DOM, getElementsByClassName
時間 2010/12/02 Thu 22:27:46


http://blog.sina.com.cn/s/blog_49f485700100doer.html

firstChild = childNodes[0]
nodeValue = data

http://www.flycan.com.tw/board/modules/newbb/viewtopic.php?post_id=8682
firstChild:第一個子結點
childNodes:子結點集合
nodeValue:結點值
nodeName:結點名稱
attributes:結點屬性

my_xml.firstChild.childNodes[1].childNodes[2].firstChild.nodeValue
my_xml.firstChild.childNodes[1].attributes.imgURL

--
  Origin:  Loess Plateau˙黃土高原  tomin.twbbs.org
  Author: tomin 從 tomin.mdorm.ntnu.edu.tw 發表


--
※ 看板: tomin 文章推薦值: 0 目前人氣: 0 累積人氣: 26 
guest
x)推文 r)回覆 e)編輯 d)刪除 M)收藏 ^x)轉錄 同主題: =)首篇 [)上篇 ])下篇