xml.Select(doc : xml, xpath : str, namespace : map?) : xml
Create an XML selection using an xpath.
Normally the first matching XML element is returned; however, a complete list of matching elements may be accessed in a foreach statement. If no match is found, then nil is returned.
Note that Xml.Select(doc, xpath) is equivalent to doc[xpath]. The only difference is that Xml.Select allows XML namespaces to be defined for the XPath expression.
1.9.1 or later
| Name | Type | Description |
| doc | xml | XML document |
| xpath | str | XPath expression for selection |
| namespaces | map | (optional, default:none) XML namespaces to use for XPath expression |
An XML value from an XML document (or list of values is used in a foreach statement) or nil if no elements matched the XPath expression.
| Output | ||
| <title>Xml.Select</title> | |
| [ <title>"Xml.Select"</title>, <title>"DekiScript Functions and Variables"</title>, <title>"Reference"</title>, <title>"DekiScript"</title>, <title>"Documentation"</title>, <title>"MindTouch Community Portal"</title>, <title>"MindTouch Community Portal"</title> ] |
| Images 0 | ||
|---|---|---|
| No images to display in the gallery. |
Copyright © 2011 MindTouch, Inc. Powered by