EVOLUTION-MANAGER
Edit File: docName.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: Accessors for name of XML document</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 docName {XML}"><tr><td>docName {XML}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Accessors for name of XML document</h2> <h3>Description</h3> <p>These functions and methods allow us to query and set the “name” of an XML document. This is intended to be its URL or file name or a description of its origin if raw XML content provided as a string. </p> <h3>Usage</h3> <pre> docName(doc, ...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>doc</code></td> <td> <p>the XML document object, of class <code>XMLInternalDocument</code> or <code>XMLDocument</code>. </p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>additional methods for methods</p> </td></tr> </table> <h3>Value</h3> <p>A character string giving the name. If the document was created from text, this is <code>NA</code> (of class character). </p> <p>The assignment function returns the updated object, but the R assignment operation will return the value on the right of the assignment! </p> <h3>Author(s)</h3> <p>Duncan Temple Lang</p> <h3>See Also</h3> <p><code><a href="xmlTreeParse.html">xmlTreeParse</a></code> <code><a href="xmlTreeParse.html">xmlInternalTreeParse</a></code> <code><a href="newXMLDoc.html">newXMLDoc</a></code> </p> <h3>Examples</h3> <pre> f = system.file("exampleData", "catalog.xml", package = "XML") doc = xmlInternalTreeParse(f) docName(doc) doc = xmlInternalTreeParse("<a><b/></a>", asText = TRUE) # an NA docName(doc) docName(doc) = "Simple XML example" docName(doc) </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>