Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
DOM を使用してこのタグを解析するにはどうすればよいですか?
<gd:where startTime="Jan 4 2012" endTime="Jan 5 2012"/>
このタグのstartTimeandが欲しいです。endTime
startTime
endTime
これを使ってみてください
getAttributeValue(null,"startTime")
xml パーサーを作成することは非常に有益ですが、名前空間に問題がある場合は. 既存の xml 解析ライブラリを使用することをお勧めします。
知りたい場合は、名前空間を持つxml要素の解析を検索してください
simplexmlとxpathはどちらも正常に動作するはずです。