Export (0) Print
Expand All

3 Structure Examples

Consider a SharePoint Search with the keywords "Cool Bikes". The results consist of a DataSet containing one DataTable named "RelevantResults", which contains the results of the search. This DataSet is serialized into an XML document that consists of one DataTable element with the name “RelevantResults”, with a number of child DataColumn elements. Note that while the type of the HitHighlightedProperties DataColumn is a string, the contents appear to be XML. However, they are serialized by the DataSet as a string, not XML, and are not encoded as XML.

The following XML is the DiffGram structure that encapsulates this search result:

<?xml version="1.0" encoding="utf-8" ?>
<DataSet xmlns="http://tempuri.org/">
 <xs:schema id="Results" xmlns="" 
xmlns:xs="http://www.w3.org/2001/XMLSchema" 
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" 
xmlns:msprop="urn:schemas-microsoft-com:xml-msprop">
  <xs:element name="Results" msdata:IsDataSet="true" 
msdata:UseCurrentLocale="true" msprop:QueryTerms="Cool Bikes;" 
msprop:IgnoredNoiseWords="" msprop:Keyword="" msprop:ElapsedTime="938" 
msprop:Definition="" msprop:SpellingSuggestion="">
   <xs:complexType>
    <xs:choice minOccurs="0" maxOccurs="unbounded">
     <xs:element name="RelevantResults" msprop:TotalRows="175" 
msprop:IsTotalRowsExact="False">
      <xs:complexType>
       <xs:sequence>
        <xs:element name="WorkId" type="xs:long" minOccurs="0" />
        <xs:element name="Rank" type="xs:long" minOccurs="0" />
        <xs:element name="Title" type="xs:string" minOccurs="0" />
        <xs:element name="Author" type="xs:string" minOccurs="0" />
        <xs:element name="Size" type="xs:long" minOccurs="0" />
        <xs:element name="Path" type="xs:string" minOccurs="0" />
        <xs:element name="Description" type="xs:string" minOccurs="0" />
        <xs:element name="Write" type="xs:dateTime" minOccurs="0" />
        <xs:element name="SiteName" type="xs:string" minOccurs="0" />
        <xs:element name="CollapsingStatus" type="xs:long" minOccurs="0" />
        <xs:element name="HitHighlightedSummary" type="xs:string" 
minOccurs="0" />
        <xs:element name="HitHighlightedProperties" type="xs:string" 
minOccurs="0" />
        <xs:element name="ContentClass" type="xs:string" minOccurs="0" />
        <xs:element name="IsDocument" type="xs:long" minOccurs="0" />
        <xs:element name="PictureThumbnailURL" type="xs:string" 
minOccurs="0" />
       </xs:sequence>
      </xs:complexType>
     </xs:element>
    </xs:choice>
   </xs:complexType>
  </xs:element>
 </xs:schema>
<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" 
xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
 <Results xmlns="">
   <RelevantResults diffgr:id="RelevantResults1" msdata:rowOrder="0">
    <WorkId>1321891</WorkId>
    <Rank>822</Rank>
    <Title>New Metro Sport Equipment Bikes</Title>
    <Author>Ms.Kim    Abercrombie</Author>
    <Size>8276480</Size>
    <Path>file://PublicShare/BikesConference/postshow/NewModels.ppt</Path>
    <Description>Metro Sport Equipment Bikes is introducing Bikes for this 
model year - this slide deck shows the new models and options</Description>
    <Write>2006-10-06T14:46:27.7529559-07:00</Write>
    <SiteName>file://PublicShare/BikesConference</SiteName>
    <CollapsingStatus>0</CollapsingStatus>
    <HitHighlightedSummary>Metro Sport Equipment Bikes is introducing Bikes 
for this model year - this slide deck shows the new models and 
options</HitHighlightedSummary>
    <HitHighlightedProperties>
     <HHTitle>
      Bike Retailers - Always ready to ride
     </HHTitle>
     <HHUrl>
      file://PublicShare/BikesConference/postshow/NewModels.ppt
     </HHUrl>
    </HitHighlightedProperties>
    <IsDocument>1</IsDocument>
   </RelevantResults>
   <RelevantResults diffgr:id="RelevantResults2" msdata:rowOrder="1">
    <WorkId>26116233</WorkId>
    <Rank>793</Rank>
    <Title>How to care for BB Ball Bearings</Title>
    <Author>Mr.GustavoAchong</Author>
    <Size>50004</Size>
    <Path>http://bikewiki/Parts/Wiki Pages/BB_Ball_Bearings.aspx</Path>
    <Write>2008-04-01T22:00:46-07:00</Write>
    <SiteName>http://bikewiki/Parts</SiteName>
    <CollapsingStatus>0</CollapsingStatus>
    <HitHighlightedSummary>
     BB Ball Bearings are known for being hard to take care of, but actually 
they aren't too bad if you follow these simple directions.
    </HitHighlightedSummary>
    <HitHighlightedProperties>
     <HHTitle>How to care for BB Ball Bearings</HHTitle>
     <HHUrl>http://bikewiki/Parts/Wiki Pages/BB_Ball_Bearings.aspx</HHUrl>
    </HitHighlightedProperties>
    <ContentClass>STS_ListItem_WebPageLibrary</ContentClass>
    <IsDocument>1</IsDocument>
   </RelevantResults>
   <RelevantResults diffgr:id="RelevantResults3" msdata:rowOrder="2">
    <WorkId>5522013</WorkId>
    <Rank>714</Rank>
    <Title>O14 PPS Build</Title>
    <Author>Mr. Samuel N. Agcaoili</Author>
    <Size>253623</Size>
    <Path>http://sharepoint/sites/PerformanceBikes/Build Changes.docx</Path>
    <Write>2008-02-18T15:03:43-08:00</Write>
    <SiteName>http://sharepoint/sites/PerformanceBikes/</SiteName>
    <CollapsingStatus>0</CollapsingStatus>
    <HitHighlightedSummary>
     No Summary available
    </HitHighlightedSummary>
    <HitHighlightedProperties>
     <HHTitle>O14 PPS Build </HHTitle>
     <HHUrl>http://sharepoint/sites/PerformanceBikes/Build 
Changes.docx</HHUrl>
    </HitHighlightedProperties>
    <ContentClass>STS_ListItem_DocumentLibrary</ContentClass>
    <IsDocument>1</IsDocument>
   </RelevantResults>
  </Results>
 </diffgr:diffgram>
</DataSet>
Show:
© 2015 Microsoft