http://swpat.ffii.org/
Action against software patents
http://www.gnome.org/
Gnome2 Logo
http://www.w3.org/Status
W3C Logo
http://www.redhat.com/
Red Hat Logo
http://xmlsoft.org/
Made with Libxml2 Logo
Module list from libxml2
API Menu
../index.html
Main Menu
../docs.html
Developer Menu
../examples/index.html
Code Examples
index.html
API Menu
libxml-parser.html
Parser API
libxml-tree.html
Tree API
libxml-xmlreader.html
Reader API
../guidelines.html
XML Guidelines
../ChangeLog.html
ChangeLog
API Indexes
../APIchunk0.html
Alphabetic
../APIconstructors.html
Constructors
../APIfunctions.html
Functions/Types
../APIfiles.html
Modules
../APIsymbols.html
Symbols
Related links
http://mail.gnome.org/archives/xml/
Mail archive
http://xmlsoft.org/XSLT/
XSLT libxslt
http://phd.cs.unibo.it/gdome2/
DOM gdome2
http://www.aleksey.com/xmlsec/
XML-DSig xmlsec
ftp://xmlsoft.org/
FTP
http://www.zlatkovic.com/projects/libxml/
Windows binaries
http://www.blastwave.org/packages.php/libxml2
Solaris binaries
http://www.explain.com.au/oss/libxml2xslt.html
MacOsX binaries
http://libxmlplusplus.sourceforge.net/
C++ bindings
http://www.zend.com/php5/articles/php5-xmlphp.php#Heading4
PHP bindings
http://sourceforge.net/projects/libxml2-pas/
Pascal bindings
http://rubyforge.org/projects/xml-tools/
Ruby bindings
http://tclxml.sourceforge.net/
Tcl bindings
http://bugzilla.gnome.org/buglist.cgi?product=libxml2
Bug Tracker
libxml-hash.html
Prev
libxml-hash.html
hash
index.html
Up
index.html
API documentation
../index.html
Home
../index.html
The XML C parser and toolkit of Gnome
libxml-nanoftp.html
nanoftp
libxml-nanoftp.html
Next
this module implement the list support used in various place in the library.
Table of Contents
Structure
#xmlLink
xmlLink
struct _xmlLink
The content of this structure is not made public by the API.
Typedef
libxml-list.html#xmlLink
xmlLink
*
xmlLinkPtr
Structure
#xmlList
xmlList
struct _xmlList
The content of this structure is not made public by the API.
Typedef
libxml-list.html#xmlList
xmlList
*
xmlListPtr
void *
#xmlLinkGetData
xmlLinkGetData
(
libxml-list.html#xmlLinkPtr
xmlLinkPtr
lk)
int
#xmlListAppend
xmlListAppend
(
libxml-list.html#xmlListPtr
xmlListPtr
l,
void * data)
void
#xmlListClear
xmlListClear
(
libxml-list.html#xmlListPtr
xmlListPtr
l)
int
#xmlListCopy
xmlListCopy
(
libxml-list.html#xmlListPtr
xmlListPtr
cur,
const
libxml-list.html#xmlListPtr
xmlListPtr
old)
libxml-list.html#xmlListPtr
xmlListPtr
#xmlListCreate
xmlListCreate
(
libxml-list.html#xmlListDeallocator
xmlListDeallocator
deallocator,
libxml-list.html#xmlListDataCompare
xmlListDataCompare
compare)
Function type:
#xmlListDataCompare
xmlListDataCompare
int
#xmlListDataCompare
xmlListDataCompare
(const void * data0,
const void * data1)
Function type:
#xmlListDeallocator
xmlListDeallocator
void
#xmlListDeallocator
xmlListDeallocator
(
libxml-list.html#xmlLinkPtr
xmlLinkPtr
lk)
void
#xmlListDelete
xmlListDelete
(
libxml-list.html#xmlListPtr
xmlListPtr
l)
libxml-list.html#xmlListPtr
xmlListPtr
#xmlListDup
xmlListDup
(const
libxml-list.html#xmlListPtr
xmlListPtr
old)
int
#xmlListEmpty
xmlListEmpty
(
libxml-list.html#xmlListPtr
xmlListPtr
l)
libxml-list.html#xmlLinkPtr
xmlLinkPtr
#xmlListEnd
xmlListEnd
(
libxml-list.html#xmlListPtr
xmlListPtr
l)
libxml-list.html#xmlLinkPtr
xmlLinkPtr
#xmlListFront
xmlListFront
(
libxml-list.html#xmlListPtr
xmlListPtr
l)
int
#xmlListInsert
xmlListInsert
(
libxml-list.html#xmlListPtr
xmlListPtr
l,
void * data)
void
#xmlListMerge
xmlListMerge
(
libxml-list.html#xmlListPtr
xmlListPtr
l1,
libxml-list.html#xmlListPtr
xmlListPtr
l2)
void
#xmlListPopBack
xmlListPopBack
(
libxml-list.html#xmlListPtr
xmlListPtr
l)
void
#xmlListPopFront
xmlListPopFront
(
libxml-list.html#xmlListPtr
xmlListPtr
l)
int
#xmlListPushBack
xmlListPushBack
(
libxml-list.html#xmlListPtr
xmlListPtr
l,
void * data)
int
#xmlListPushFront
xmlListPushFront
(
libxml-list.html#xmlListPtr
xmlListPtr
l,
void * data)
int
#xmlListRemoveAll
xmlListRemoveAll
(
libxml-list.html#xmlListPtr
xmlListPtr
l,
void * data)
int
#xmlListRemoveFirst
xmlListRemoveFirst
(
libxml-list.html#xmlListPtr
xmlListPtr
l,
void * data)
int
#xmlListRemoveLast
xmlListRemoveLast
(
libxml-list.html#xmlListPtr
xmlListPtr
l,
void * data)
void
#xmlListReverse
xmlListReverse
(
libxml-list.html#xmlListPtr
xmlListPtr
l)
void *
#xmlListReverseSearch
xmlListReverseSearch
(
libxml-list.html#xmlListPtr
xmlListPtr
l,
void * data)
void
#xmlListReverseWalk
xmlListReverseWalk
(
libxml-list.html#xmlListPtr
xmlListPtr
l,
libxml-list.html#xmlListWalker
xmlListWalker
walker,
const void * user)
void *
#xmlListSearch
xmlListSearch
(
libxml-list.html#xmlListPtr
xmlListPtr
l,
void * data)
int
#xmlListSize
xmlListSize
(
libxml-list.html#xmlListPtr
xmlListPtr
l)
void
#xmlListSort
xmlListSort
(
libxml-list.html#xmlListPtr
xmlListPtr
l)
void
#xmlListWalk
xmlListWalk
(
libxml-list.html#xmlListPtr
xmlListPtr
l,
libxml-list.html#xmlListWalker
xmlListWalker
walker,
const void * user)
Function type:
#xmlListWalker
xmlListWalker
int
#xmlListWalker
xmlListWalker
(const void * data,
const void * user)
Description
Structure xmlLink
Structure xmlLink
struct _xmlLink {
The content of this structure is not made public by the API.
}
Structure xmlList
Structure xmlList
struct _xmlList {
The content of this structure is not made public by the API.
}
Function: xmlLinkGetData
void *	xmlLinkGetData			(
libxml-list.html#xmlLinkPtr
xmlLinkPtr
lk)
See Returns.
lk
:
a link
Returns
:
a pointer to the data referenced from this link
Function: xmlListAppend
int	xmlListAppend			(
libxml-list.html#xmlListPtr
xmlListPtr
l,
void * data)
Insert data in the ordered list at the end for this value
l
:
a list
data
:
the data
Returns
:
0 in case of success, 1 in case of failure
Function: xmlListClear
void	xmlListClear			(
libxml-list.html#xmlListPtr
xmlListPtr
l)
Remove the all data in the list
l
:
a list
Function: xmlListCopy
int	xmlListCopy			(
libxml-list.html#xmlListPtr
xmlListPtr
cur,
const
libxml-list.html#xmlListPtr
xmlListPtr
old)
Move all the element from the old list in the new list
cur
:
the new list
old
:
the old list
Returns
:
0 in case of success 1 in case of error
Function: xmlListCreate
libxml-list.html#xmlListPtr
xmlListPtr
xmlListCreate		(
libxml-list.html#xmlListDeallocator
xmlListDeallocator
deallocator,
libxml-list.html#xmlListDataCompare
xmlListDataCompare
compare)
Create a new list
deallocator
:
an optional deallocator function
compare
:
an optional comparison function
Returns
:
the new list or NULL in case of error
Function type: xmlListDataCompare
Function type: xmlListDataCompare
int	xmlListDataCompare		(const void * data0,
const void * data1)
Callback function used to compare 2 data.
data0
:
the first data
data1
:
the second data
Returns
:
0 is equality, -1 or 1 otherwise depending on the ordering.
Function type: xmlListDeallocator
Function type: xmlListDeallocator
void	xmlListDeallocator		(
libxml-list.html#xmlLinkPtr
xmlLinkPtr
lk)
Callback function used to free data from a list.
lk
:
the data to deallocate
Function: xmlListDelete
void	xmlListDelete			(
libxml-list.html#xmlListPtr
xmlListPtr
l)
Deletes the list and its associated data
l
:
a list
Function: xmlListDup
libxml-list.html#xmlListPtr
xmlListPtr
xmlListDup		(const
libxml-list.html#xmlListPtr
xmlListPtr
old)
Duplicate the list
old
:
the list
Returns
:
a new copy of the list or NULL in case of error
Function: xmlListEmpty
int	xmlListEmpty			(
libxml-list.html#xmlListPtr
xmlListPtr
l)
Is the list empty ?
l
:
a list
Returns
:
1 if the list is empty, 0 if not empty and -1 in case of error
Function: xmlListEnd
libxml-list.html#xmlLinkPtr
xmlLinkPtr
xmlListEnd		(
libxml-list.html#xmlListPtr
xmlListPtr
l)
Get the last element in the list
l
:
a list
Returns
:
the last element in the list, or NULL
Function: xmlListFront
libxml-list.html#xmlLinkPtr
xmlLinkPtr
xmlListFront		(
libxml-list.html#xmlListPtr
xmlListPtr
l)
Get the first element in the list
l
:
a list
Returns
:
the first element in the list, or NULL
Function: xmlListInsert
int	xmlListInsert			(
libxml-list.html#xmlListPtr
xmlListPtr
l,
void * data)
Insert data in the ordered list at the beginning for this value
l
:
a list
data
:
the data
Returns
:
0 in case of success, 1 in case of failure
Function: xmlListMerge
void	xmlListMerge			(
libxml-list.html#xmlListPtr
xmlListPtr
l1,
libxml-list.html#xmlListPtr
xmlListPtr
l2)
include all the elements of the second list in the first one and clear the second list
l1
:
the original list
l2
:
the new list
Function: xmlListPopBack
void	xmlListPopBack			(
libxml-list.html#xmlListPtr
xmlListPtr
l)
Removes the last element in the list
l
:
a list
Function: xmlListPopFront
void	xmlListPopFront			(
libxml-list.html#xmlListPtr
xmlListPtr
l)
Removes the first element in the list
l
:
a list
Function: xmlListPushBack
int	xmlListPushBack			(
libxml-list.html#xmlListPtr
xmlListPtr
l,
void * data)
add the new data at the end of the list
l
:
a list
data
:
new data
Returns
:
1 if successful, 0 otherwise
Function: xmlListPushFront
int	xmlListPushFront		(
libxml-list.html#xmlListPtr
xmlListPtr
l,
void * data)
add the new data at the beginning of the list
l
:
a list
data
:
new data
Returns
:
1 if successful, 0 otherwise
Function: xmlListRemoveAll
int	xmlListRemoveAll		(
libxml-list.html#xmlListPtr
xmlListPtr
l,
void * data)
Remove the all instance associated to data in the list
l
:
a list
data
:
list data
Returns
:
the number of deallocation, or 0 if not found
Function: xmlListRemoveFirst
int	xmlListRemoveFirst		(
libxml-list.html#xmlListPtr
xmlListPtr
l,
void * data)
Remove the first instance associated to data in the list
l
:
a list
data
:
list data
Returns
:
1 if a deallocation occured, or 0 if not found
Function: xmlListRemoveLast
int	xmlListRemoveLast		(
libxml-list.html#xmlListPtr
xmlListPtr
l,
void * data)
Remove the last instance associated to data in the list
l
:
a list
data
:
list data
Returns
:
1 if a deallocation occured, or 0 if not found
Function: xmlListReverse
void	xmlListReverse			(
libxml-list.html#xmlListPtr
xmlListPtr
l)
Reverse the order of the elements in the list
l
:
a list
Function: xmlListReverseSearch
void *	xmlListReverseSearch		(
libxml-list.html#xmlListPtr
xmlListPtr
l,
void * data)
Search the list in reverse order for an existing value of @data
l
:
a list
data
:
a search value
Returns
:
the value associated to @data or NULL in case of error
Function: xmlListReverseWalk
void	xmlListReverseWalk		(
libxml-list.html#xmlListPtr
xmlListPtr
l,
libxml-list.html#xmlListWalker
xmlListWalker
walker,
const void * user)
Walk all the element of the list in reverse order and apply the walker function to it
l
:
a list
walker
:
a processing function
user
:
a user parameter passed to the walker function
Function: xmlListSearch
void *	xmlListSearch			(
libxml-list.html#xmlListPtr
xmlListPtr
l,
void * data)
Search the list for an existing value of @data
l
:
a list
data
:
a search value
Returns
:
the value associated to @data or NULL in case of error
Function: xmlListSize
int	xmlListSize			(
libxml-list.html#xmlListPtr
xmlListPtr
l)
Get the number of elements in the list
l
:
a list
Returns
:
the number of elements in the list or -1 in case of error
Function: xmlListSort
void	xmlListSort			(
libxml-list.html#xmlListPtr
xmlListPtr
l)
Sort all the elements in the list
l
:
a list
Function: xmlListWalk
void	xmlListWalk			(
libxml-list.html#xmlListPtr
xmlListPtr
l,
libxml-list.html#xmlListWalker
xmlListWalker
walker,
const void * user)
Walk all the element of the first from first to last and apply the walker function to it
l
:
a list
walker
:
a processing function
user
:
a user parameter passed to the walker function
Function type: xmlListWalker
Function type: xmlListWalker
int	xmlListWalker			(const void * data,
const void * user)
Callback function used when walking a list with xmlListWalk().
data
:
the data found in the list
user
:
extra user provided data to the walker
Returns
:
0 to stop walking the list, 1 otherwise.
../bugs.html
Daniel Veillard
