XML::collect


NOTE: The features contained in this namespace require an EA (Early Access) license to be accessed. These commands will not function if your system does not have this license installed. For more information about obtaining the necessary license to access these features, please contact your sales representative. For more information, read about the LicenseDetails

Description

Collects and parses incoming XML data.
Note: All XML commands are unavailable beginning in v10.

Syntax

XML::collect [explicit | implicit]

XML::collect [explicit | implicit]

  • Collects and parses the data. The default mode of implicit releases the memory associated with the document when parsing is complete or an end-of-file is reached. A mode of explicit requires the use of the XML::release command to release the collected data.

Examples

when XML_BEGIN_DOCUMENT {
  XML::subscribe allevent
  XML::collect
}
when XML_BEGIN_ELEMENT {
  log local0. "Entering element [XML::element]"
}
when XML_CDATA {
  log local0. "Found character data [XML::cdata]"
}
when XML_END_ELEMENT {
  log local0. "Leaving element [XML::element]"
}