inst/examples/xmlTree.R

tt = xmlTree("doc")

# Shows that we can create the children within the call to create
# a parent.

tt$addTag("a",
           tt$addTag("b", tt$addTag("c")),
           tt$addTag("d", tt$addTag("e")))

           
           

Try the XML package in your browser

Any scripts or data that you put into this service are public.

XML documentation built on Nov. 3, 2023, 1:14 a.m.