Share via


WebQueryInfo Element (View)

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

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>

Attributes

Attribute

Description

None

N/A

Child Elements

None

Parent Elements

Numerous

Occurrences

Minimum: 0

Maximum: 1

Remarks

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.

Example

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>