xmlView {RGtkViewers}R Documentation

Methods for creating Gtk tree representing XML document/nodes

Description

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.

Usage

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)))

Arguments

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.

Details

This is a simple recursive mechanism.

Value

A GtkTree object.

Author(s)

Duncan Temple Lang <duncan@research.bell-labs.com>

References

http://www.omegahat.org/RGtk http://www.omegahat.org/RSXML

See Also

xmlTreeView xmlTreeParse

Examples

 

[Package RGtkViewers version 0.7 Index]