|
|
|
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: |
10ms |
get forum list: |
12ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
53ms |
get topic data: |
9ms |
get forum data: |
3ms |
get page messages: |
26ms |
get tp. blocked users: |
1ms |
| others: | 239ms |
| total: | 357ms |

| 0 / 0 |
