GetXAttribute Method
Retrieve the value at the specified XPath in the SOAP response.
Object Oriented Interface
public function doGetXAttribute($xpath);
Procedural Interface
incloudstorage_sharepoint_do_getxattribute($res, $xpath);
Remarks
The GetXAttribute method allows you to access a specific part of the SOAP response, through XPath.
For instance, to obtain the title of the first subsite, you could do the following:
SPSite.listSubSites(); Print SPSite.getXAttribute("/soap:Envelope/soap:Body/GetWebCollectionResponse/GetWebCollectionResult/Webs/Web[1]/@Title");
The contents of the SOAP response can be retrieved through the SOAPResponse configuration setting.