下面看一个实际的返回结果例子:
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns
OAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<ns1
oGoogleSearchResponse xmlns:ns1="urn:GoogleSearch" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<return xsi:type="ns1:GoogleSearchResult">
<directoryCategories xmlns:ns2="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:Array" ns2:arrayType="ns1
irectoryCategory[0]">
</directoryCategories>
<documentFiltering xsi:type="xsd:boolean">true</documentFiltering>
<endIndex xsi:type="xsd:int">10</endIndex>
<estimateIsExact xsi:type="xsd:boolean">false</estimateIsExact>
<estimatedTotalResultsCount xsi:type="xsd:int">31</estimatedTotalResultsCount>
<resultElements xmlns:ns3="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns3:Array" ns3:arrayType="ns1:ResultElement[10]">
<item xsi:type="ns1:ResultElement">
<URL xsi:type="xsd
tring">http://msdn.microsoft.com/library/en-us/dncenet/html/choose_api.asp</URL>
<cachedSize xsi:type="xsd
tring">54k</cachedSize>
<directoryCategory xsi:type="ns1
irectoryCategory">
<fullViewableName xsi:type="xsd
tring"></fullViewableName>
<specialEncoding xsi:type="xsd
tring"></specialEncoding>
</directoryCategory>
<directoryTitle xsi:type="xsd
tring"></directoryTitle>
<hostName xsi:type="xsd
tring"></hostName>
<relatedInformationPresent xsi:type="xsd:boolean">true</relatedInformationPresent>
<snippet xsi:type="xsd
tring">Choosing a Windows Embedded <b>API</b>: Win32 vs. the .NET Compact Framework. Written by: Paul Yao, Windows<br> Embedded MVP The Paul Yao Company. <b>...</b> This article focuses on two of these APIs—Win32 and the .NET Compact<br> Framework —to provide details on selecting an <b>API</b> for specific programming tasks. <b>...</b> </snippet>
<summary xsi:type="xsd
tring"></summary>
<title xsi:type="xsd
tring">Choosing a Windows Embedded <b>API</b>: Win32 vs. the .NET Compact <b>...</b></title>
</item>
</resultElements>
<searchComments xsi:type="xsd
tring"></searchComments>
<searchQuery xsi:type="xsd
tring">google site:www.blanksoft.com</searchQuery>
<searchTime xsi:type="xsd
ouble">0.177621</searchTime>
<searchTips xsi:type="xsd
tring"></searchTips>
<startIndex xsi:type="xsd:int">1</startIndex>
</return>
</ns1
oGoogleSearchResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
完整可以看:http://www.blanksoft.com/gosearch/rettext.txt
我只保留了一个item信息(应该是maxResults个或者少于maxResults个)。
下面结束主要的节点含义:
return节:
estimatedTotalResultsCount:收到的总记录数。
searchComments:显示一些注释信息,比如“Google 会搜索所有的查询字词,您不必添加 "AND" 运算符”
searchQuery:查询内容,一般等于你传入的查询字符串,但是并不总是一样。
SearchTime:返回服务器搜索花费的时间
SearchTips:显示一些小技巧
StartIndex:当前返回第一条记录的索引号
EndIndex:当前返回最后一条记录的索引号
Item::返回的结果集合
Item节:
URL:页面地址
CachedSize:在Google的cache的页面大小
Snippet:内容摘录
Title:页面标题