Difference between revisions of "XML GATHER()"

From Recital Documentation Wiki
Jump to: navigation, search
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
{{YLM to do}}
 
 
 
==Purpose==
 
==Purpose==
 
+
Replace fields in the current record with values from a character string containing XML formatted data
  
  
 
==Syntax==
 
==Syntax==
XML_GATHER(<expC1>)
+
XML_GATHER(<expC>)
  
  
 
==See Also==
 
==See Also==
[[MQCLOSE()]], [[MQCREATE()]], [[MQCURMSGS()]], [[MQOPEN()]],  [[MQSEND()]], [[MQRECEIVE()]], [[XML_DECODE()]], [[XML_ENCODE()]], [[XML_SCATTER()]]
+
[[MQCLOSE()]], [[MQCREATE()]], [[MQCURMSGS()]], [[MQOPEN()]],  [[MQSEND()]], [[MQRECEIVE()]], [[MQUNLINK()]], [[XML]], [[XML_DECODE()]], [[XML_ENCODE()]], [[XML_SCATTER()]]
  
  
 
==Description==
 
==Description==
The XML_GATHER() function  
+
The XML_GATHER() function replaces fields in the current record of the current table with values from the specified character string <expC>.  The <expC> string must contain valid XML formatted data.  XML_GATHER() returns .T. (true) if the replacement succeeded and .F. (false) if not.
  
  
 
==Example==
 
==Example==
 
<code lang="recital">
 
<code lang="recital">
 
+
open database southwind
 +
use shippers
 +
cVar = xml_scatter()
 +
copy structure to temp
 +
use temp
 +
append blank
 +
xml_gather(cVar)
 
</code>
 
</code>
  

Latest revision as of 10:11, 5 July 2011

Purpose

Replace fields in the current record with values from a character string containing XML formatted data


Syntax

XML_GATHER(<expC>)


See Also

MQCLOSE(), MQCREATE(), MQCURMSGS(), MQOPEN(), MQSEND(), MQRECEIVE(), MQUNLINK(), XML, XML_DECODE(), XML_ENCODE(), XML_SCATTER()


Description

The XML_GATHER() function replaces fields in the current record of the current table with values from the specified character string <expC>. The <expC> string must contain valid XML formatted data. XML_GATHER() returns .T. (true) if the replacement succeeded and .F. (false) if not.


Example

open database southwind
use shippers
cVar = xml_scatter()
copy structure to temp
use temp
append blank
xml_gather(cVar)


Products

Recital, Recital Server