EVOLUTION-MANAGER
Edit File: xml_path.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Retrieve the xpath to a node</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for xml_path {xml2}"><tr><td>xml_path {xml2}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Retrieve the xpath to a node</h2> <h3>Description</h3> <p>This is useful when you want to figure out where nodes matching an xpath expression live in a document. </p> <h3>Usage</h3> <pre> xml_path(x) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>x</code></td> <td> <p>A document, node, or node set.</p> </td></tr> </table> <h3>Value</h3> <p>A character vector. </p> <h3>Examples</h3> <pre> x <- read_xml("<foo><bar><baz /></bar><baz /></foo>") xml_path(xml_find_all(x, ".//baz")) </pre> <hr /><div style="text-align: center;">[Package <em>xml2</em> version 1.3.2 <a href="00Index.html">Index</a>]</div> </body></html>