Cloud Storage Integrator - Online Help
Cloud Storage Integrator
Questions / Feedback?

GetXAttribute Method

Retrieve the value at the specified XPath in the SOAP response.

Syntax

public String getXAttribute(String 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.

 
 
Copyright (c) 2017 /n software inc. - All rights reserved.
Build 1.0.6240.0