inst/examples/hashTree.R

 tt = xmlHashTree()

 top = addNode("top", , tt)
  addNode(xmlNode("a"), top, tt)
  b = addNode(xmlNode("b"), top, tt)
  c = addNode(xmlNode("c"), b, tt)
  addNode(xmlNode("c"), top, tt)
  addNode(xmlNode("c"), b, tt)    
  addNode(xmlTextNode("Some text"), c, tt)

  xmlElementsByTagName(tt$top, "c")

Try the XML package in your browser

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

XML documentation built on June 25, 2024, 5:06 p.m.