Add children to an XML node

DESCRIPTION:

This appends one or more XML nodes as children of an existing node.

USAGE:

append.XMLNode(to, ...)
append.xmlNode(to, ...)

ARGUMENTS:

to
the XML node to which the sub-nodes are to be added.
...
the sub-nodes which are to be added to the to node. If this is a list of XMLNode objects (e.g. create by a call to ), then that list is used.

VALUE:

The original to node containing its new children nodes.

AUTHOR(S):

Duncan Temple Lang

REFERENCES:

http://www.w3.org/XML, http://www.jclark.com/xml, http://www.omegahat.org

SEE ALSO:

EXAMPLES:

 top <- xmlNode("top", xmlNode("next","Some text"))
 top <- append.xmlNode(top, xmlNode("hello"))