|
XML значение
|
|||
---|---|---|---|
#18+
Есть файл <a> <b> <c d="e">123</c> <c d="f">124</c> <c d="g">125</c> </b> </a> делаю: if ($s = post('http://xml.nl/xml',$query) ){ if( class_exists('SimpleXMLElement') ){ if( $xmldoc = new SimpleXMLElement($s) ){ $result = $xmldoc->xpath('/a/b/c'); if( !empty($result) ){ foreach( $xmldoc->xpath('/a/b/c') as $result ){ echo (string) $result; }}}}} вижу efg а как получить 125? ... |
|||
:
Нравится:
Не нравится:
|
|||
25.03.2010, 15:37 |
|
|
start [/forum/topic.php?fid=14&fpage=36&tid=1333276]: |
0ms |
get settings: |
8ms |
get forum list: |
12ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
29ms |
get topic data: |
10ms |
get forum data: |
1ms |
get page messages: |
30ms |
get tp. blocked users: |
1ms |
others: | 10ms |
total: | 107ms |
0 / 0 |