toString.XMLNode | R Documentation |
This creates a string from a hierarchical XML node and its children just as it prints on the console or one might see it in a document.
## S3 method for class 'XMLNode'
toString(x, ...)
x |
an object of class |
... |
currently ignored |
This uses a textConnection object using the name .tempXMLOutput. Since this is global, it will overwrite any existing object of that name! As a result, this function cannot be used recursively in its present form.
A character vector with one element, that being the string corresponding to the XML node's contents.
This requires the Expat XML parser to be installed.
Duncan Temple Lang
https://www.w3.org/XML//, http://www.jclark.com/xml/
xmlNode
xmlTreeParse
x <- xmlRoot(xmlTreeParse(system.file("exampleData", "gnumeric.xml", package = "XML")))
toString(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.