TipcMsgUpdateNamedXml


Name

TipcMsgUpdateNamedXml — update a named XML field in a message

Synopsis

T_BOOL TipcMsgUpdateNamedXml(msg, name, value) 
T_IPC_MSG msg; 
T_STR name; 
T_XML value; 

Arguments

msg — message to which to append the field

name — name of the field

value — value of the field

Return Values

TRUE if the append was successful, FALSE otherwise.

Diagnostics

If TipcMsgUpdateNamedXml fails, it returns FALSE and sets the global SmartSockets error number to one of:

Description

TipcMsgUpdateNamedXml appends an XML object in a message, associating that field with a name.

See Also

TipcMsgAddNamedXml, TipcMsgGetNamedXml

Examples

This example changes the value of the named field "data":

T_XML data; 
if (!TipcMsgUpdateNamedXml(msg, "data", data)) { 
  return;  /* error */ 
} 

TIBCO SmartSockets™ Application Programming Interface
Software Release 6.8, July 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com