You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

The XML protocol handler parses XML documents and extracts attribute values using XPath expressions.

Options

  • delay: Delay of reading in milliseconds (default 0).
  • nanodelay: Delay of reading in nanoseconds (default 0).
  • Attribute: XPath for the attribute in the document.

Example

PQL

XML Protocol Handler
input = ACCESS({source='Web', wrapper='GenericPush',
transport='File',protocol='XML',
  dataHandler='Tuple',options=[['symbol','/symbols/symbol[last()]/name'],['points','/symbols/symbol[last()]/points']],
  schema=[
    ['symbol','String'],
    ['points','Double'] ]
})
  • No labels