[SOAP] How to extract value using php soapclient
[email protected] (ofuuzo) Tue, 3 May 2011 06:04:48 -0700 (PDT)
| Newsgroups | php.soap |
|---|---|
| Message-ID | <[email protected]> |
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.