[SOAP] How to extract value using php soapclient
| From: | ofuuzo | Date: | Tue, 03 May 2011 13:04:48 +0000 |
| Subject: | [SOAP] How to extract value using php soapclient | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-3284@lists.php.net to get a copy of this message | ||
Hi,
I have just started learning to program with PHP SOAPclient. I have
the following xml file and I want to extract/get the value
rs-1304338811289-11595:
-
-
-
-
http://129.70.212.20:8282/dnet-mdstore/
services/MDStoreResultSet
-
rs-1304338811289-11595
-......
My php script that is not working:
<?php
$source = 'resourceIdentifier.xml';
$xml = simplexml_load_string($source);
$xml->registerXPathNamespace('identifier', 'ns3');
foreach ($xml->xpath('//identifier:ResourceIdentifier') as $item)
{
print_r($item);
}
?>
I need help and thanks in advance.
- Ofuuzo
--
View this message in context: http://old.nabble.com/How-to-extract-value-using-php-soapclient-tp31532238p31532238.html
Sent from the Php - Soap mailing list archive at Nabble.com.