This is my XML which i have:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<notifications xmlns="http://soap.sforce.com/2005/09/outbound">
<OrganizationId>00Dp00000008kXDEAY</OrganizationId>
<ActionId>04k28000000L3shAAC</ActionId>
<SessionId xsi:nil="true"/>
<EnterpriseUrl>https://232.salesforce.com/services/Soap/c/36.0/00Dp00000008kXD</EnterpriseUrl>
<PartnerUrl>https://232.salesforce.com/services/Soap/u/36.0/00Dp00000008kXD</PartnerUrl>
<Notification>
<Id>034l3004D4247lVAAS</Id>
<sObject xsi:type="sf:SMS_Activity__c" xmlns:sf="urn:sobject.enterprise.soap.sforce.com">
<sf:Id>a0Ip0000001WxvaEAC</sf:Id>
<sf:Brand__c>ABC</sf:Brand__c>
<sf:Content__c>halo test</sf:Content__c>
<sf:Mobile__c>628145783535</sf:Mobile__c>
</sObject>
</Notification>
</notifications>
</soapenv:Body>
</soapenv:Envelope>
Please help me how to read the value of (brand,content__C,mobile__c) with php code ?
I could not get Mobile__c that from what i tried the below code
$notif=simplexml_load_string($xml);
$Mobile=$notif->sObject-
>children('urn:sobject.enterprise.soap.sforce.com')-
>Mobile__c.PHP_EOL;
$qd="";
$qd="insert into incoming(phone) values('$Mobile')";
mysql_query($qd);