TAG

Used in

RESPONSE  

Servers

Metadata (Browse)  

Parent elements

COLLECTION_INFO 

Syntax

<TAGAttribute Description Table
     (r)indextype="STRING | VARCHAR | DOUBLE"
     (r)value="string"
>

     No Child Elements
</TAG >
(r): Attribute or child element is required.

Description

Identifies XML elements whose values will be included in the Metadata Service's XPath index if the elements exist in the published documents. Values in these elements can be used to search the collection.

Attribute Descriptions for TAG

AttributeUsage
indextypeIdentifies how values in an XML element will be indexed. When searching, use criteria that are appropriate to the element data types.
  • "STRING": a full-text index is used to search the values. Ideal for longer strings where advanced text matching is used to determine results.
  • "VARCHAR": values are stored and indexed in a varchar column. Ideal for text codes and short strings where you want to search for an exact match.
  • "DOUBLE": numbers, numeric codes, and dates are stored and indexed in a double column.
valueDefines the location of an element inside an XML tree. For example, the element "title" might be inside an XML structure such as

<metadata>
  <idinfo>
  <citation>
      <citeinfo>
        <title>...</title>
      </citeinfo>
  </citation>
  </idinfo>
<metadata>


When "title" is included in the XPath index, the string value for this attribute would be "/metadata/idinfo/citation/citeinfo/title" where "metadata" is the root element in the XML document and the root element is preceeded by a slash (/).
Back to top 

Examples for TAG

<?xml version="1.0" encoding="UTF8"?>
<ARCXML version="1.1">
  <RESPONSE>
    <METADATA>
      <COLLECTION_INFO>
        <TAG value="/metadata/idinfo/keywords/theme/themekey" indextype="VARCHAR" />
        <TAG value="/metadata/idinfo/descript/abstract" indextype="STRING" />
        <TAG value="/metadata/idinfo/citation/citeinfo/title" indextype="STRING" />
        <TAG value="/metadata/idinfo/citation/citeinfo/geoform" indextype="VARCHAR" />
        <TAG value="/metadata/idinfo/citation/citeinfo/pubdate" indextype="DOUBLE" />
        <TAG value="/metadata/dataqual/cloud" indextype="DOUBLE" />
        ...
      </COLLECTION_INFO>
    </METADATA>
  </RESPONSE>
</ARCXML>

Back to top