wocky Reference Manual | ||||
---|---|---|---|---|
Top | Description |
WockyNodeTreePrivate; WockyNodeTreeClass; WockyNodeTree * wocky_node_tree_new (const gchar *name
,const gchar *ns
,...
); WockyNodeTree * wocky_node_tree_new_va (const gchar *name
,const char *ns
,va_list va
); WockyNodeTree * wocky_node_tree_new_from_node (WockyNode *node
); WockyNode * wocky_node_tree_get_top_node (WockyNodeTree *self
);
WockyNodeTree * wocky_node_tree_new (const gchar *name
,const gchar *ns
,...
);
Build a node-tree from a list of arguments. Example:
Example 2.
1 2 3 4 5 6 7 |
wocky_node_tree_new ("html", "http://www.w3.org/1999/xhtml", '(', "html", ':', "http://www.w3.org/1999/xhtml", '(', "body", '@', "textcolor", "red", '$', "Wocky wooo", ')', ')', NULL); |
|
The name of the toplevel node |
|
The namespace of the toplevel node |
|
the description of the node tree to build,
terminated with NULL
|
Returns : |
a new node-tree object |
WockyNodeTree * wocky_node_tree_new_va (const gchar *name
,const char *ns
,va_list va
);
|
|
|
|
|
|
Returns : |
WockyNodeTree * wocky_node_tree_new_from_node (WockyNode *node
);
Build a new WockyNodeTree that contains a copy of the given node.
|
The node to copy |
Returns : |
a new node-tree object |
WockyNode * wocky_node_tree_get_top_node (WockyNodeTree *self
);
|
|
Returns : |