How to extract value using php soapclient

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux