TAGVALUE

Used in

REQUEST  

Servers

Metadata (Browse)  

Parent elements

SEARCH_METADATA 

Syntax

<TAGVALUEAttribute Description Table
     (r)equalto="string"
     (r)greaterthan="string"
     (r)greaterthanorequalto="string"
     (r)lessthan="string"
     (r)lessthanorequalto="string"
     (r)notequalto="string"
     (r)tag="string"
     attribute="string"
>

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

Description

Searches numeric values within a specified element in a metadata document.

Restrictions


Notes


Attribute Descriptions for TAGVALUE

AttributeUsage
attributeName of an attribute for searching.
equaltoEqual to operator for comparing two values.
greaterthanGreater than operator for comparing two values.
greaterthanorequaltoGreater than or equal to operator for comparing two values.
lessthanLess than operator for comparing two values.
lessthanorequaltoLess than or equal to operator for comparing two values.
notequaltoEliminates a particular value from the search.
tagDefines 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 searching the contents of "title", 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 not preceeded by a slash (/).
Back to top 

Examples for TAGVALUE

<?xml version="1.0" encoding="UTF-8"?>
<ARCXML version="1.1">
  <REQUEST>
    <GET_METADATA>
      <SEARCH_METADATA operator="and" maxresults="10" startresult="0" >
        <TAGVALUE tag="metadata/idinfo/citation/citeinfo/pubdate" greaterthanorequalto="20001006" lessthanorequalto="20010104"/>
      </SEARCH_METADATA>
    </GET_METADATA>
  </REQUEST>
</ARCXML>

Back to top