EVOLUTION-MANAGER
Edit File: setXMLNamespace.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: Set the name space on 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 setXMLNamespace {XML}"><tr><td>setXMLNamespace {XML}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Set the name space on a node</h2> <h3>Description</h3> <p>This function sets the name space for an XML node, typically an internal node. We can use it to either define a new namespace and use that, or refer to a name space definition in an ancestor of the current node. </p> <h3>Usage</h3> <pre> setXMLNamespace(node, namespace, append = FALSE) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>node</code></td> <td> <p>the node on which the name space is to be set</p> </td></tr> <tr valign="top"><td><code>namespace</code></td> <td> <p>the name space to use for the node. This can be a name space prefix (string) defined in an ancestor node, or a named character vector of the form <code>c(prefix = URI)</code> that defines a new namespace on this node, or we can use a name space object created with <code><a href="newXMLNamespace.html">newXMLNamespace</a></code>.</p> </td></tr> <tr valign="top"><td><code>append</code></td> <td> <p>currently ignored.</p> </td></tr> </table> <h3>Value</h3> <p>An object of class <code>XMLNamespaceRef</code> which is a reference to the native/internal/C-level name space object. </p> <h3>Author(s)</h3> <p>Duncan Temple Lang </p> <h3>See Also</h3> <p><code><a href="newXMLNamespace.html">newXMLNamespace</a></code> </p> <p><code><a href="removeXMLNamespaces.html">removeXMLNamespaces</a></code> </p> <h3>Examples</h3> <pre> # define a new namespace e = newXMLNode("foo") setXMLNamespace(e, c("r" = "http://www.r-project.org")) # use an existing namespace on an ancestor node e = newXMLNode("top", namespaceDefinitions = c("r" = "http://www.r-project.org")) setXMLNamespace(e, "r") e </pre> <hr /><div style="text-align: center;">[Package <em>XML</em> version 3.99-0.3 <a href="00Index.html">Index</a>]</div> </body></html>