
Last chance! 50% off unlimited learning
Sale ends in
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.
asXMLNode(x)
the object to be converted to an XMLNode
object.
This is typically alread an object that inherits from XMLNode
or a string.
An object of class XMLNode.
http://www.w3.org/XML, http://www.jclark.com/xml, http://www.omegahat.net
# NOT RUN {
# creates an XMLTextNode.
asXMLNode("a text node")
# unaltered.
asXMLNode(xmlNode("p"))
# }
Run the code above in your browser using DataLab