xml/ | |
License | Copyright © 2007-2012, FreeBASIC Extended Library Development Group |
ext.xml | |
Enumerations | |
node_type_e | Represents the different types of nodes supported. |
node | Child XML class, branch and leaf nodes. |
Variables | |
tag | Contains this child’s tag name |
Functions | |
node_type | Access the type of the node. |
Properties | |
attribute | Access the value of an attribute of the node. |
attribute | Set the value of an attribute of this node. |
getText | Returns the value of a Text element. |
setText | Sets the value of a Text element. |
Functions | |
children | Count the number of child nodes. |
children | Count the number of child nodes with a specific tag. |
children | Count the number of child nodes with a specific type. |
child | Access a specific child of this node. |
child | Access a specific child of this node by tag. |
child | Access a specific child of this node by type. |
last_child | Access the child with the highest integer index. |
appendChild | Add a child onto this node. |
remove_child | Remove a child from this node. |
remove_child | Remove a child from this node by tag. |
remove_child | Remove a child from this node by type. |
Parent( ) as node ptr | |
tree | Base XML class, node is a sub-class of this class. |
Variables | |
root | Used to access the XML document structure. |
Functions | |
load | Loads a XML data structure from a file. |
unload | Unloads a XML data structure to a file |
clear | Clears all data from the xml tree. |
Copyright © 2007-2012, FreeBASIC Extended Library Development Group
Distributed under the FreeBASIC Extended Library Group license. See accompanying file LICENSE.txt or copy at http://code.google.com
Enumerations | |
node_type_e | Represents the different types of nodes supported. |
Child XML class, branch and leaf nodes.
Supports casting to string to print out XML data of the node and its children.
Variables | |
tag | Contains this child’s tag name |
Functions | |
node_type | Access the type of the node. |
Properties | |
attribute | Access the value of an attribute of the node. |
attribute | Set the value of an attribute of this node. |
getText | Returns the value of a Text element. |
setText | Sets the value of a Text element. |
Functions | |
children | Count the number of child nodes. |
children | Count the number of child nodes with a specific tag. |
children | Count the number of child nodes with a specific type. |
child | Access a specific child of this node. |
child | Access a specific child of this node by tag. |
child | Access a specific child of this node by type. |
last_child | Access the child with the highest integer index. |
appendChild | Add a child onto this node. |
remove_child | Remove a child from this node. |
remove_child | Remove a child from this node by tag. |
remove_child | Remove a child from this node by type. |
Parent( ) as node ptr |
declare function appendChild( byref tag as const string, byval node_type as node_type_e = element ) as node ptr
Add a child onto this node.
tag | tag to give new child. |
node_type | optional type of node to create, defaults to element. |
node ptr of the new child, not needed for normal usage.
Contains this child’s tag name
as string tag
Access the type of the node.
declare function nodeType() as node_type_e
Access the value of an attribute of the node.
declare property attribute( byref attribute as const string ) as string
Returns the value of a Text element.
declare property getText( ) as string
Sets the value of a Text element.
declare property setText( byref text_ as const string )
Count the number of child nodes.
declare function children() as integer
Access a specific child of this node.
declare function child( byval index as integer = 0 ) as node ptr
Add a child onto this node.
declare function appendChild( byref tag as const string, byval node_type as node_type_e = element ) as node ptr
Used to access the XML document structure.
as node ptr root
Loads a XML data structure from a file.
declare function load( byref xmlfile as const string ) as bool
Unloads a XML data structure to a file
declare function unload( byref xmlfile as const string ) as bool
Clears all data from the xml tree.
declare sub clear( )