skip to main
|
skip to sidebar
Hardworking Strawberry
Home
Posts RSS
Comments RSS
7/24/2009
Simplexml
讀檔:
$xml = simplexml_load_file("iv04dataset.xml");
if(!$xml) echo "fail";
找element(利用xpath找):
$t = $xml->xpath("/articles/article[@id='acm721078']");
讀value:
echo $t[0]->title;
讀attribute:
$attr = $t[0]->attributes();
echo $attr["id"];
0 comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Labels
Android
(3)
bib
(1)
bibtex
(1)
CGW
(1)
chrome
(1)
CMU
(1)
Craftmanship
(1)
dokuwiki
(1)
EnergyAware
(1)
english
(5)
flex
(9)
game ai
(1)
Graphics
(1)
HCI
(2)
InfoVis
(16)
Java
(1)
linux
(3)
MachineLearning
(1)
Memo
(9)
MODBus
(1)
php
(2)
Plugin
(1)
prefuse
(4)
psychologic
(1)
research
(18)
Result
(8)
search
(1)
simplexml
(1)
Social Network
(4)
ssl
(1)
tag cloud
(3)
TechnicalWriting
(5)
tool
(2)
tutorial
(3)
usability test
(1)
User Study
(1)
visualization
(4)
web
(3)
xml
(1)
心得
(1)
日文
(3)
資訊系統訓練班
(1)
Blog Archive
►
2013
(1)
►
January
(1)
►
2012
(2)
►
August
(1)
►
January
(1)
►
2011
(6)
►
October
(1)
►
September
(1)
►
March
(3)
►
February
(1)
►
2010
(8)
►
May
(1)
►
April
(2)
►
March
(3)
►
February
(2)
▼
2009
(21)
►
October
(3)
►
September
(1)
►
August
(3)
▼
July
(1)
Simplexml
►
June
(1)
►
May
(4)
►
April
(2)
►
March
(2)
►
February
(4)
►
2008
(32)
►
December
(2)
►
November
(1)
►
October
(1)
►
September
(9)
►
July
(17)
►
May
(1)
►
March
(1)
►
2007
(8)
►
December
(3)
►
November
(5)
About me
Unknown
View my complete profile
Search This Blog
Copyright 2009
Hardworking Strawberry
BLogger Theme
by
BloggerThemes
Wordpress by
Wpthemesfree
0 comments:
Post a Comment