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 dict 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-debugXML.html
Prev
libxml-debugXML.html
debugXML
index.html
Up
index.html
API documentation
../index.html
Home
../index.html
The XML C parser and toolkit of Gnome
libxml-encoding.html
encoding
libxml-encoding.html
Next
dictionary of reusable strings, just used to avoid allocation and freeing operations.
Table of Contents
Structure
#xmlDict
xmlDict
struct _xmlDict
The content of this structure is not made public by the API.
Typedef
libxml-dict.html#xmlDict
xmlDict
*
xmlDictPtr
void
#xmlDictCleanup
xmlDictCleanup
(void)
libxml-dict.html#xmlDictPtr
xmlDictPtr
#xmlDictCreate
xmlDictCreate
(void)
libxml-dict.html#xmlDictPtr
xmlDictPtr
#xmlDictCreateSub
xmlDictCreateSub
(
libxml-dict.html#xmlDictPtr
xmlDictPtr
sub)
const
libxml-xmlstring.html#xmlChar
xmlChar
*
#xmlDictExists
xmlDictExists
(
libxml-dict.html#xmlDictPtr
xmlDictPtr
dict,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
int len)
void
#xmlDictFree
xmlDictFree
(
libxml-dict.html#xmlDictPtr
xmlDictPtr
dict)
const
libxml-xmlstring.html#xmlChar
xmlChar
*
#xmlDictLookup
xmlDictLookup
(
libxml-dict.html#xmlDictPtr
xmlDictPtr
dict,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
int len)
int
#xmlDictOwns
xmlDictOwns
(
libxml-dict.html#xmlDictPtr
xmlDictPtr
dict,
const
libxml-xmlstring.html#xmlChar
xmlChar
* str)
const
libxml-xmlstring.html#xmlChar
xmlChar
*
#xmlDictQLookup
xmlDictQLookup
(
libxml-dict.html#xmlDictPtr
xmlDictPtr
dict,
const
libxml-xmlstring.html#xmlChar
xmlChar
* prefix,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
int
#xmlDictReference
xmlDictReference
(
libxml-dict.html#xmlDictPtr
xmlDictPtr
dict)
int
#xmlDictSize
xmlDictSize
(
libxml-dict.html#xmlDictPtr
xmlDictPtr
dict)
Description
Structure xmlDict
Structure xmlDict
struct _xmlDict {
The content of this structure is not made public by the API.
}
Function: xmlDictCleanup
void	xmlDictCleanup			(void)
Free the dictionary mutex.
Function: xmlDictCreate
libxml-dict.html#xmlDictPtr
xmlDictPtr
xmlDictCreate		(void)
Create a new dictionary
Returns
:
the newly created dictionnary, or NULL if an error occured.
Function: xmlDictCreateSub
libxml-dict.html#xmlDictPtr
xmlDictPtr
xmlDictCreateSub	(
libxml-dict.html#xmlDictPtr
xmlDictPtr
sub)
Create a new dictionary, inheriting strings from the read-only dictionnary @sub. On lookup, strings are first searched in the new dictionnary, then in @sub, and if not found are created in the new dictionnary.
sub
:
an existing dictionnary
Returns
:
the newly created dictionnary, or NULL if an error occured.
Function: xmlDictExists
const
libxml-xmlstring.html#xmlChar
xmlChar
*	xmlDictExists		(
libxml-dict.html#xmlDictPtr
xmlDictPtr
dict,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
int len)
Check if the @name exists in the dictionnary @dict.
dict
:
the dictionnary
name
:
the name of the userdata
len
:
the length of the name, if -1 it is recomputed
Returns
:
the internal copy of the name or NULL if not found.
Function: xmlDictFree
void	xmlDictFree			(
libxml-dict.html#xmlDictPtr
xmlDictPtr
dict)
Free the hash @dict and its contents. The userdata is deallocated with @f if provided.
dict
:
the dictionnary
Function: xmlDictLookup
const
libxml-xmlstring.html#xmlChar
xmlChar
*	xmlDictLookup		(
libxml-dict.html#xmlDictPtr
xmlDictPtr
dict,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name,
int len)
Add the @name to the dictionnary @dict if not present.
dict
:
the dictionnary
name
:
the name of the userdata
len
:
the length of the name, if -1 it is recomputed
Returns
:
the internal copy of the name or NULL in case of internal error
Function: xmlDictOwns
int	xmlDictOwns			(
libxml-dict.html#xmlDictPtr
xmlDictPtr
dict,
const
libxml-xmlstring.html#xmlChar
xmlChar
* str)
check if a string is owned by the disctionary
dict
:
the dictionnary
str
:
the string
Returns
:
1 if true, 0 if false and -1 in case of error -1 in case of error
Function: xmlDictQLookup
const
libxml-xmlstring.html#xmlChar
xmlChar
*	xmlDictQLookup		(
libxml-dict.html#xmlDictPtr
xmlDictPtr
dict,
const
libxml-xmlstring.html#xmlChar
xmlChar
* prefix,
const
libxml-xmlstring.html#xmlChar
xmlChar
* name)
Add the QName @prefix:@name to the hash @dict if not present.
dict
:
the dictionnary
prefix
:
the prefix
name
:
the name
Returns
:
the internal copy of the QName or NULL in case of internal error
Function: xmlDictReference
int	xmlDictReference		(
libxml-dict.html#xmlDictPtr
xmlDictPtr
dict)
Increment the
libxml-SAX.html#reference
reference
counter of a dictionary
dict
:
the dictionnary
Returns
:
0 in case of success and -1 in case of error
Function: xmlDictSize
int	xmlDictSize			(
libxml-dict.html#xmlDictPtr
xmlDictPtr
dict)
Query the number of elements installed in the hash @dict.
dict
:
the dictionnary
Returns
:
the number of elements in the dictionnary or -1 in case of error
../bugs.html
Daniel Veillard
