xmlTlAddTag

CAS XML Script Library

The xmlTlAddTag function adds a tag and tag data to an XML taglist.  This function is used to add tags at the root level of taglists or to sections that are created with the xmlTlCreateSection function.

void xmlTlAddTag(
  Object xmlTl, // xmlTl object returned from xmlTlNew
  BSTR   TagName, // Tag name
  BSTR   TagData // Tag data
)


Parameters:
xmlTl An xmlTl object returned from the xmlTlNew function. 

TagName Name of tag to add.

TagData Data to add with tag.

Return Value:
None

Example:
function GetPortCount()
  {
  var Tl = xmlTlNew();
  xmlTlAddTag(Tl,"GET_PORTS_INFO",null);
  xmlTlAddTag(Tl,"REGISTERED_NAME","User1");
  xmlTlAddTag(Tl,"REGISTERED_PASSWORD","");

  var responseXML = xmlTlSend(Tl,Domain,Server,Protocol,ProxyURL);
    
  return(xmlTlGetTag(responseXML,"NUMBER_OF_PORTS"));
  }
See Also:
xmlTlNew, xmlTlCreateSection, xmlTlSend