Find Subtrees using XPath (vuo.tree.find.xpath)

Finds all items in a tree that match an XPath expression.

For example, if the tree was created from the following XML…

<bookstore>
   <book isbn="0140448063" sku="P456">
      <title>The Pillow Book</title>
      <author>Sei Shonagon</author>
      <translator>Meredith McKinney</translator>
      <price>12</price>
   </book>
   <book isbn="0765627345" sku="N123">
      <title>More Stories by Japanese Women Writers</title>
      <editor>Kyoko Selden</editor>
      <editor>Noriko Mizuta</editor>
      <price>19</price>
   </book>
</bookstore>

…then this node’s output for each of the following XPath expressions would be…

If there’s an error in the XPath expression, this node outputs an empty list. Check Console.app for details about the error.

Keywords: element, filter, json, object, path, search, seek, tag, xml


Example composition:


Back to vuo.tree node set documentation.