web.List(source : str, xpath : str, namespaces : map, xml : bool, ttl: num) : list
Convert source to a list of text values by optionally fetching and parsing it.
1.9.1 or later
| Name | Type | Description |
| source | str | XML source text or source uri |
| xpath | str | xpath to list of values |
| namespaces | map | (optional, default: none) XML namespace definitions |
| xml | bool | (optional, default: false) Capture enclosing XML element |
| ttl | num | (optional, range: 60 - 86400, default: 300) caching durations in seconds (requires 8.08 or later) |
This function behaves similarly to web.text except that it returns the text value of all XML nodes matched by the xpath expression instead of only the first one.
NOTE: all web.* functions are limited to reading at most 500KB of data from a URI.
| Output | ||
| [ "item 1", "item 2" ] |
| Images 0 | ||
|---|---|---|
| No images to display in the gallery. |
Copyright © 2011 MindTouch, Inc. Powered by