xmlView             package:RGtkViewers             R Documentation

_M_e_t_h_o_d_s _f_o_r _c_r_e_a_t_i_n_g _G_t_k _t_r_e_e _r_e_p_r_e_s_e_n_t_i_n_g _X_M_L _d_o_c_u_m_e_n_t/_n_o_d_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     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.

_U_s_a_g_e:

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

_A_r_g_u_m_e_n_t_s:

     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.

_D_e_t_a_i_l_s:

     This is a simple recursive mechanism.

_V_a_l_u_e:

     A 'GtkTree' object.

_A_u_t_h_o_r(_s):

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

_R_e_f_e_r_e_n_c_e_s:

     <URL: http://www.omegahat.org/RGtk> <URL:
     http://www.omegahat.org/RSXML>

_S_e_e _A_l_s_o:

     'xmlTreeView'   'xmlTreeParse'

_E_x_a_m_p_l_e_s:

      

