EVOLUTION-MANAGER
Edit File: getXMLErrors.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: Get XML/HTML document parse errors</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 getXMLErrors {XML}"><tr><td>getXMLErrors {XML}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Get XML/HTML document parse errors</h2> <h3>Description</h3> <p>This function is intended to be a convenience for finding all the errors in an XML or HTML document due to being malformed, i.e. missing quotes on attributes, non-terminated elements/nodes, incorrectly terminated nodes, missing entities, etc. The document is parsed and a list of the errors is returned along with information about the file, line and column number. </p> <h3>Usage</h3> <pre> getXMLErrors(filename, parse = xmlParse, ...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>filename</code></td> <td> <p> the identifier for the document to be parsed, one of a local file name, a URL or the XML/HTML content itself</p> </td></tr> <tr valign="top"><td><code>parse</code></td> <td> <p> the function to use to parse the document, usually either <code><a href="xmlTreeParse.html">xmlTreeParse</a></code> or <code><a href="xmlTreeParse.html">htmlTreeParse</a></code>. </p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>additional arguments passed to the function given by <code>parse</code></p> </td></tr> </table> <h3>Value</h3> <p>A list of S3-style <code>XMLError</code> objects. </p> <h3>Author(s)</h3> <p>Duncan Temple Lang</p> <h3>References</h3> <p>libxml2 (<a href="http://xmlsoft.org">http://xmlsoft.org</a>)</p> <h3>See Also</h3> <p><code>error</code> argument for <code><a href="xmlTreeParse.html">xmlTreeParse</a></code> and related functions. </p> <h3>Examples</h3> <pre> # Get the "errors" in the HTML that was generated from this Rd file getXMLErrors(system.file("html", "getXMLErrors.html", package = "XML")) ## Not run: getXMLErrors("http://www.omegahat.net/index.html") ## End(Not run) </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>