|
|
|||||||||||||
|
The xmlTlGetTag function retrieves the data associated with a tag (element) within the response XML returned from the xmlTlSend function. This function can retrieve tags at the root level of an XML taglist or within sections, depending on the TagPath you provide to query the XML. Because the response from xmlTlSend is an XMLDOM object, using the xmlTlGetTag function is only one of many ways to parse the XML. You are encouraged to use XMLDOM methods, such as selectSingleNode and selectNodes, to query the XML in any way that is convenient for your application.
|
|||||||||||||
|
Parameters: |
|||||||||||||
|
|||||||||||||
|
Return Value: |
|||||||||||||
| The data associated with a tag or any empty BSTR ("") if the tag is not found. | |||||||||||||
|
Example: |
|||||||||||||
function GetMsgFile( MessageHandle, MessageFileToGet )
{
var Tl = xmlTlNew();
xmlTlAddTag(Tl,"GET_FILE_FUNCTION",null);
xmlTlAddTag(Tl,"REGISTERED_NAME","User1");
xmlTlAddTag(Tl,"REGISTERED_PASSWORD","");
xmlTlAddTag(Tl,"MESSAGE_HANDLE",MessageHandle);
xmlTlAddTag(Tl,"CURRENT_FILESPEC",MessageFileToGet);
var responseXML = xmlTlSend(Tl,Domain,Server,Protocol,ProxyURL);
if (xmlTlGetTag(responseXML,"STATUS_NUM") == 0)
{
return(Base64Decode(xmlTlGetTag(responseXML,"CONTENT_DATA")));
}
return("");
} |
|||||||||||||
| See Also: | |||||||||||||
| xmlTlNew, xmlTlSend, Base64Decode | |||||||||||||
|
|