Export (0) Print
Expand All

WebQueryInfo Element (View)

Last modified: July 15, 2011

Applies to: SharePoint Foundation 2013 | SharePoint Server 2013

In this article
Attributes
Child Elements
Parent Elements
Occurrences

Used inside a <TABLE> tag surrounding a view to add attributes that assist the agents that are processing Web queries in extracting data from views.


<WebQueryInfo>
</WebQueryInfo>

Attribute

Description

None

N/A

Minimum: 0

Maximum: 1

The WebQueryInfo element renders an ID on the <TABLE> tag, a Summary attribute set to the name of the list, and a WebQuerySourceHref attribute in the o: namespace that links to the XMLDATA representation of the view. Consequently, agents that understand these attributes can import a structured data view of lists rather than being required to perform a "screenscrape" for the data.

In the following example, the WebQueryInfo element is used in a ViewHeader element to provide an ID for a table that contains a view.

<ViewHeader>
  <HTML>
    <![CDATA[ <TABLE ID="  ]]>
  </HTML>
  <ows:WebQueryInfo />
  <HTML>
    <![CDATA[ " width="100%" border=0 rules=rows>
        <TR VALIGN=TOP><FORM>  ]]>
  </HTML>
  <Fields>
    <HTML>
      <![CDATA[ <TH class="ms-vh">  ]]>
    </HTML>
    <Field /> 
    <HTML>
      <![CDATA[ </TH>  ]]>
    </HTML>
  </Fields>
  <HTML>
    <![CDATA[ </FORM></TR>  ]]>
  </HTML>
</ViewHeader>
Show:
© 2015 Microsoft