EVOLUTION-MANAGER
Edit File: processXInclude.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: Perform the XInclude substitutions</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 processXInclude {XML}"><tr><td>processXInclude {XML}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Perform the XInclude substitutions</h2> <h3>Description</h3> <p>This function and its methods process the XInclude directives within the document of the form <code><xi:include href="..." xpointer=".."</code> and perform the actual substitution. </p> <p>These are only relevant for "internal nodes" as generated via <code><a href="xmlTreeParse.html">xmlInternalTreeParse</a></code> and <code><a href="newXMLDoc.html">newXMLNode</a></code> and their related functions. When dealing with XML documents via <code><a href="xmlTreeParse.html">xmlTreeParse</a></code> or <code><a href="xmlEventParse.html">xmlEventParse</a></code>, the XInclude nodes are controlled during the parsing. </p> <h3>Usage</h3> <pre> processXInclude(node, flags = 0L) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>node</code></td> <td> <p>an XMLInternalDocument object or an XMLInternalElement node or a list of such internal nodes, e.g. returned from <code><a href="getNodeSet.html">xpathApply</a></code>.</p> </td></tr> <tr valign="top"><td><code>flags</code></td> <td> <p>an integer value that provides information to control how the XInclude substitutions are done, i.e. how they are parsed. This is a bitwise OR'ing of some or all of the xmlParserOption values. This will be turned into an enum in R in the future.</p> </td></tr> </table> <h3>Value</h3> <p>These functions are used for their side-effect to modify the document and its nodes. </p> <h3>Author(s)</h3> <p>Duncan Temple Lang</p> <h3>References</h3> <p>libxml2 <a href="http://www.xmlsoft.org">http://www.xmlsoft.org</a> XInclude </p> <h3>See Also</h3> <p><code><a href="xmlTreeParse.html">xmlInternalTreeParse</a></code> <code><a href="newXMLDoc.html">newXMLNode</a></code> </p> <h3>Examples</h3> <pre> f = system.file("exampleData", "include.xml", package = "XML") doc = xmlInternalTreeParse(f, xinclude = FALSE) cat(saveXML(doc)) sects = getNodeSet(doc, "//section") sapply(sects, function(x) xmlName(x[[2]])) processXInclude(doc) cat(saveXML(doc)) f = system.file("exampleData", "include.xml", package = "XML") doc = xmlInternalTreeParse(f, xinclude = FALSE) section1 = getNodeSet(doc, "//section")[[1]] # process processXInclude(section1[[2]]) </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>