xmlView {RGtkViewers} | R Documentation |
These are methods for processing the different parts of an XML document, ranging from the URI name to the document to the individual nodes. These work recursively and allow the caller to specify a function for creating the widget representing a node.
xmlView(doc, top = gtkTree(), createItem = function(x) gtkTreeItem(xmlName(x))) xmlView.default(doc, top = gtkTree(), createItem = function(x) gtkTreeItem(xmlName(x))) xmlView.XMLDocument(doc, top = gtkTree(), createItem = function(x) gtkTreeItem(xmlName(x))) xmlView.XMLNode(doc, top = gtkTree(), createItem = function(x) gtkTreeItem(xmlName(x)))
doc |
the hierarchical object,
possibly a URI giving the name of document to parse,
an XMLDocument object from xmlTreeParse
or an XMLNode object. |
top |
the tree into which to add the different nodes/tree items |
createItem |
a function that is used to create the
GtkTreeItem from the XMLNode object.
This makes it easy to create different views of the
nodes and to specify any callbacks to customize the behavior of
the nodes in the tree. |
This is a simple recursive mechanism.
A GtkTree
object.
Duncan Temple Lang <duncan@research.bell-labs.com>
http://www.omegahat.org/RGtk http://www.omegahat.org/RSXML