Action: GetElementText

Purpose: Retrieves all text for a specified Element

If more than one Text Node exists for an Element, then the Data property for all text nodes is returned

Action-specific name/value pairs:

Parameter Name Description
ElementOID The Element whose text 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=GetElementText
&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=GetElementText
&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'?>
<GetElementTextResponse xmlns="http://mdbx.mgateway.com/doc/2009-06-05/">
   <GetElementTextResult>
      <Text>
         Hello world!
      </Text>
   </GetElementTextResult>
</GetElementTextResponse>

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

{Text:"Hello world!"}