xmlNode(name, ..., attrs=NULL, namespace="")
xmlTextNode(value, namespace="", entities = XMLEntities)
xmlPINode(sys, value, namespace="")
xmlCDataNode(...)
xmlCommentNode(text) .. XMLNode
or arbitrary values that will be converted to a string
to form an XMLTextNode object.XMLTextNode.XMLNode.
In the case of xmlTextNode,
this also inherits from XMLTextNode.
The fields or slots that objects
of these classes have
include
name, attributes, children and namespace.
However, one should
the accessor functions
xmlName,
xmlAttrs,
xmlChildren
and
xmlNamespacexmlTreeParse
asXMLNodea <- xmlNode("arg", attrs = c(default="T"),
xmlNode("name", "foo"), xmlNode("defaultValue","1:10"))Run the code above in your browser using DataLab