EVOLUTION-MANAGER
Edit File: readKeyValueDB.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: Read an XML property-list style 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 readKeyValueDB {XML}"><tr><td>readKeyValueDB {XML}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Read an XML property-list style document</h2> <h3>Description</h3> <p>This function and its methods reads an XML document that is in the format of name-value or key-value pairs made up of a <code>plist</code> and <code>dict</code> nodes, each of which is made up <code>key</code>, and value node pairs. These used to be used for property lists on OS X and can represetn arbitrary data relatively conveniently. </p> <h3>Usage</h3> <pre> readKeyValueDB(doc, ...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>doc</code></td> <td> <p>the object containing the data. This can be the name of a file, a parsed XML document or an XML node.</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>additional parameters for the methods. One can pass <code>dropComments</code> as a logical value to control whether comment nodes are processed or ignored (<code>TRUE</code>). </p> </td></tr> </table> <h3>Value</h3> <p>An R object representing the data read from the XML content. This is typically a named list or vector where the names are the keys and the values are collected into an R "container". </p> <h3>Author(s)</h3> <p>Duncan Temple Lang </p> <h3>References</h3> <p>Property lists. </p> <h3>See Also</h3> <p><code><a href="readSolrDoc.html">readSolrDoc</a></code>, <code><a href="xmlToList.html">xmlToList</a></code>, <code><a href="xmlToDataFrame.html">xmlToDataFrame</a></code>, <code><a href="xmlTreeParse.html">xmlParse</a></code> </p> <h3>Examples</h3> <pre> if(file.exists("/usr/share/hiutil/Stopwords.plist")) { o = readKeyValueDB("/usr/share/hiutil/Stopwords.plist") } if(file.exists("/usr/share/java/Tools/Applet Launcher.app/Contents/Info.plist")) javaInfo = readKeyValueDB('/usr/share/java/Tools/Applet Launcher.app/Contents/Info.plist') </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>