|
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/moderation_log.php?user_name=wPashtet]: |
0ms |
get settings: |
8ms |
get forum list: |
11ms |
get settings: |
7ms |
get forum list: |
15ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
60ms |
get topic data: |
11ms |
get forum data: |
3ms |
get page messages: |
39ms |
get tp. blocked users: |
1ms |
others: | 743ms |
total: | 906ms |
0 / 0 |