asXMLNode {XML} | R Documentation |
Converts non-XML node objects to XMLTextNode objects
Description
This function is used to convert S objects that
are not already XMLNode
objects
into objects of that class. Specifically,
it treats the object as a string and creates
an XMLTextNode
object.
Also, there is a method for converting an XMLInternalNode - the C-level libxml representation of a node - to an explicit R-only object which contains the R values of the data in the internal node.
Usage
asXMLNode(x)
Arguments
x |
the object to be converted to an |
Value
An object of class XMLNode.
Author(s)
Duncan Temple Lang
References
https://www.w3.org/XML/, http://www.jclark.com/xml/, https://www.omegahat.net
See Also
Examples
# creates an XMLTextNode.
asXMLNode("a text node")
# unaltered.
asXMLNode(xmlNode("p"))
[Package XML version 3.99-0.17 Index]