TipcMsgGetNamedXml Get a named XML field from a message
msg
message to get field from
name
name of the field
xml_return
return pointer to value of the field
TRUE
if the get was successful, FALSE
otherwise.
If TipcMsgNextXml fails, it returns FALSE
and sets the global SmartSockets error number to:
TipcMsgGetNamedXml gets the field specified by the name. If no field by this name exists, or the field associated with this name is unknown, this function fails.
If TipcMsgGetNamedXml returns FALSE
, it does not store a value in xml_return
.
Do not modify the value stored in xml_return
. It points directly into an internal data structure.
TipcMsgAddNamedXml, TipcMsgUpdateNamedXml, TipcMsgNextXml
T_IPC_MSG msg; T_BOOL status; T_XML xml; status = TipcMsgGetNamedXml(msg, "foo", &xml); if (status == FALSE) {return
; /* error */
}
TIBCO SmartSockets™ Application Programming Interface Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |