Action: GetTagName

Purpose: Returns the TagName property of a specified Element. For example if the element is <myTag id='123'>, the TagName Action will return myTag. Note that M/DB:X ignores any significance of prefixes, so if the tag was <ewd:myTag id='123'>, the TagName Action will simply return ewd:myTag.

Action-specific name/value pairs:

Parameter Name Description
ElementOID The OID of the Element whose TagName property is to be retrieved.

Alternatively, the parameters above can be incorporated into a single JSON string and specified using the parameter name JSON, eg:

{ElementOID:"1-4"}

Example Request

Action=GetTagName
&ElementOID=1-4
&MDBAccessKeyId=[your access key id]
&Signature=[computed signature]
&SignatureMethod=HmacSHA256
&SignatureVersion=2
&Timestamp=2009-06-14T13%3A19%3A41
&Version=2009-04-15
&db=mdbx

or:

Action=GetTagName
&JSON=%7BElementOID%3A%221-4%22%7D
&MDBAccessKeyId=[your access key id]
&OutputFormat=JSON
&Signature=[computed signature]
&SignatureMethod=HmacSHA256
&SignatureVersion=2
&Timestamp=2009-06-14T13%3A19%3A41
&Version=2009-04-15
&db=mdbx

Example Response

XML

<?xml version='1.0'?>
<GetTagNameResponse xmlns="http://mdbx.mgateway.com/doc/2009-06-05/">
   <GetTagNameResult>
      <TagName>
         myTag
      </TagName>
   </GetTagNameResult>
</GetTagNameResponse>

JSON (ie if OutputFormat=JSON specified in the Request)

{TagName:"myTag"}