These classes are intended to represent an XML node, either directly in S or a reference to an internal libxml node. Such nodes respond to queries about their name, attributes, namespaces and children. These are old-style, S3 class definitions at present.
No methods defined with class "XMLNode" in the signature.
# An R-level XMLNode object
a <- xmlNode("arg", attrs = c(default="T"),
xmlNode("name", "foo"), xmlNode("defaultValue","1:10"))
xmlAttrs(a) = c(a = 1, b = "a string")
Run the code above in your browser using DataLab