GetXAttribute Method
Retrieve the value at the specified XPath in the SOAP response.
Syntax
[VB.NET] Public Function GetXAttribute(ByVal Xpath As String) As String
[C#] 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.