diff --git a/ChangeLog b/ChangeLog index f8644d5f..0258afb3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Fri Dec 10 11:24:41 CET 2004 Daniel Veillard + + * valid.c: fixed ID deallocation problem based on patch from + Steve Shepard fixes bug #160893 + * xmlmemory.c: improving comment. + * testapi.c: new test for xmlDictExists() is generated. + Wed Dec 1 22:35:37 HKT 2004 William Brack * dict.c, xpath.c, include/libxml/hash.h: fixed up some gcc warnings, diff --git a/doc/APIchunk10.html b/doc/APIchunk10.html index 65f6f7b0..a5a9c5b7 100644 --- a/doc/APIchunk10.html +++ b/doc/APIchunk10.html @@ -129,6 +129,7 @@ A:link, A:visited, A:active { text-decoration: underline } CAST_TO_NUMBER
CAST_TO_STRING
xmlXPathConvertFunc
+
casting
XML_CAST_FPTR
cat
xmlShellCat
catalogs
xmlCatalogAddLocal
xmlCatalogCleanup
@@ -152,6 +153,7 @@ A:link, A:visited, A:active { text-decoration: underline } xmlResetLastError
xmlSchemaCollapseString
xmlSchemaParse
+xmlSchemaWhiteSpaceReplace
xmlSubstituteEntitiesDefault
xmlSwitchEncoding
xmlSwitchInputEncoding
diff --git a/doc/APIchunk11.html b/doc/APIchunk11.html index ef399a3e..0471f200 100644 --- a/doc/APIchunk11.html +++ b/doc/APIchunk11.html @@ -355,6 +355,7 @@ A:link, A:visited, A:active { text-decoration: underline } _xmlXPathContext
xmlDictCreate
xmlDictCreateSub
+xmlDictExists
xmlDictFree
xmlDictLookup
xmlDictOwns
diff --git a/doc/APIchunk12.html b/doc/APIchunk12.html index 2e5756f3..f63a7f01 100644 --- a/doc/APIchunk12.html +++ b/doc/APIchunk12.html @@ -139,6 +139,7 @@ A:link, A:visited, A:active { text-decoration: underline } xmlCharEncFirstLine
xmlCharEncOutFunc
encountered
xmlEncodeEntities
+
encountering
XML_CAST_FPTR
end-tag
xmlParseElement
end-up
xmlParseReference
ended
xmlC14NDocDumpMemory
@@ -337,7 +338,8 @@ A:link, A:visited, A:active { text-decoration: underline }
execution
xmlRegExecPushString
xmlRegExecPushString2
exist
xmlXPtrLocationSetAdd
-
exists
xmlShellPwd
+
exists
xmlDictExists
+xmlShellPwd
xmlTextReaderConstXmlLang
xmlTextReaderXmlLang
xmlValidateNotationDecl
diff --git a/doc/APIchunk14.html b/doc/APIchunk14.html index c31732d9..3c7e0b72 100644 --- a/doc/APIchunk14.html +++ b/doc/APIchunk14.html @@ -38,6 +38,7 @@ A:link, A:visited, A:active { text-decoration: underline }

Letter g:

garanteed
xmlUTF8Strsize
garbage
xmlGcMemGet
xmlGcMemSetup
+
gcc
XML_CAST_FPTR
genChRanges
xmlIsBaseCharQ
xmlIsBaseChar_ch
xmlIsBlankQ
diff --git a/doc/APIchunk16.html b/doc/APIchunk16.html index bfea7cfd..1465cedf 100644 --- a/doc/APIchunk16.html +++ b/doc/APIchunk16.html @@ -165,6 +165,7 @@ A:link, A:visited, A:active { text-decoration: underline } _xmlDoc
xmlC14NDocSave
xmlCatalogSetDebug
+xmlCleanupMemory
xmlDebugDumpAttr
xmlDebugDumpAttrList
xmlDebugDumpNode
@@ -191,6 +192,7 @@ A:link, A:visited, A:active { text-decoration: underline }
libraries
xmlRelaxNGInitTypes
library
_xmlError
_xmlSchema
+xmlCleanupMemory
xmlCleanupParser
xmlCleanupThreads
xmlInitThreads
diff --git a/doc/APIchunk17.html b/doc/APIchunk17.html index ae8491be..ee5173d3 100644 --- a/doc/APIchunk17.html +++ b/doc/APIchunk17.html @@ -163,7 +163,6 @@ A:link, A:visited, A:active { text-decoration: underline } xmlSAX2GetSystemId
memorylist
xmlMemDisplay
xmlMemoryDump
-
memorys
xmlCleanupMemory
merged
xmlTextMerge
merging
xmlAddChild
xmlAddChildList
diff --git a/doc/APIchunk19.html b/doc/APIchunk19.html index 1b3ec11d..82f966aa 100644 --- a/doc/APIchunk19.html +++ b/doc/APIchunk19.html @@ -320,6 +320,7 @@ A:link, A:visited, A:active { text-decoration: underline } _xmlParserCtxt
resolveEntity
resolveEntitySAXFunc
+xmlCleanupMemory
xmlSAX2ResolveEntity
owned
xmlClearParserCtxt
xmlDictOwns
diff --git a/doc/APIchunk21.html b/doc/APIchunk21.html index e36896ac..0b0c6c98 100644 --- a/doc/APIchunk21.html +++ b/doc/APIchunk21.html @@ -156,6 +156,7 @@ A:link, A:visited, A:active { text-decoration: underline } xmlValidateRoot
recomputed
xmlBufferAdd
xmlBufferAddHead
+xmlDictExists
xmlDictLookup
reconciliate
xmlReconciliateNs
record
xmlACatalogAdd
@@ -416,6 +417,7 @@ A:link, A:visited, A:active { text-decoration: underline } htmlRequiredAttrs
xmlCatalogSetDebug
xmlSchemaCollapseString
+xmlSchemaWhiteSpaceReplace
xmlXPathStringFunction
requires
XML_SCHEMAS_QUALIF_ATTR
XML_SCHEMAS_QUALIF_ELEM
diff --git a/doc/APIchunk25.html b/doc/APIchunk25.html index ac3ff8b7..f510dd86 100644 --- a/doc/APIchunk25.html +++ b/doc/APIchunk25.html @@ -45,7 +45,8 @@ A:link, A:visited, A:active { text-decoration: underline } xmlCharEncInFunc
xmlCharEncOutFunc
warn
xmlCheckVersion
-
warning
_xmlValidCtxt
+
warning
XML_CAST_FPTR
+_xmlValidCtxt
docbCreatePushParserCtxt
htmlCreatePushParserCtxt
initxmlDefaultSAXHandler
@@ -198,7 +199,8 @@ A:link, A:visited, A:active { text-decoration: underline } xmlTextWriterWriteBinHex
xmlValidGetValidElements
xmlXPathIntersection
-
without
_xmlEntity
+
without
XML_CAST_FPTR
+_xmlEntity
entityDecl
entityDeclSAXFunc
htmlNewDocNoDtD
diff --git a/doc/APIchunk6.html b/doc/APIchunk6.html index 668cd2df..867ff374 100644 --- a/doc/APIchunk6.html +++ b/doc/APIchunk6.html @@ -196,6 +196,7 @@ A:link, A:visited, A:active { text-decoration: underline } xmlXPtrLocationSetRemove
Replace
xmlNodeSetContent
xmlNodeSetContentLen
+
Replaces
xmlSchemaWhiteSpaceReplace
Required
_htmlElemDesc
htmlAttrAllowed
xmlParseDefaultDecl
diff --git a/doc/APIconstructors.html b/doc/APIconstructors.html index fbe9e0cf..64e83832 100644 --- a/doc/APIconstructors.html +++ b/doc/APIconstructors.html @@ -18,6 +18,7 @@ A:link, A:visited, A:active { text-decoration: underline } xmlBufferContent
xmlCatalogGetPublic
xmlCatalogGetSystem
+xmlDictExists
xmlDictLookup
xmlDictQLookup
xmlEncodeEntities
@@ -206,6 +207,7 @@ A:link, A:visited, A:active { text-decoration: underline } xmlSaveUri
xmlScanName
xmlSchemaCollapseString
+xmlSchemaWhiteSpaceReplace
xmlSplitQName
xmlSplitQName2
xmlStrcat
diff --git a/doc/APIfiles.html b/doc/APIfiles.html index cc09f7db..e60e28b0 100644 --- a/doc/APIfiles.html +++ b/doc/APIfiles.html @@ -317,6 +317,7 @@ A:link, A:visited, A:active { text-decoration: underline }

Module dict:

xmlDict
xmlDictCreate
xmlDictCreateSub
+xmlDictExists
xmlDictFree
xmlDictLookup
xmlDictOwns
@@ -464,7 +465,8 @@ A:link, A:visited, A:active { text-decoration: underline } xmlThrDefSubstituteEntitiesDefaultValue
xmlThrDefTreeIndentString
xmlTreeIndentString
-

Module hash:

xmlHashAddEntry
+

Module hash:

XML_CAST_FPTR
+xmlHashAddEntry
xmlHashAddEntry2
xmlHashAddEntry3
xmlHashCopier
@@ -2645,6 +2647,7 @@ A:link, A:visited, A:active { text-decoration: underline } xmlSchemaValidateLengthFacet
xmlSchemaValidateListSimpleTypeFacet
xmlSchemaValidatePredefinedType
+xmlSchemaWhiteSpaceReplace

Module xmlstring:

BAD_CAST
xmlChar
xmlCharStrdup
diff --git a/doc/APIfunctions.html b/doc/APIfunctions.html index 95366f8d..0e78437a 100644 --- a/doc/APIfunctions.html +++ b/doc/APIfunctions.html @@ -211,6 +211,7 @@ A:link, A:visited, A:active { text-decoration: underline } xmlCreateIntSubset
xmlCtxtReadDoc
xmlDebugDumpString
+xmlDictExists
xmlDictLookup
xmlDictOwns
xmlDictQLookup
@@ -336,6 +337,7 @@ A:link, A:visited, A:active { text-decoration: underline } xmlSchemaValidateLengthFacet
xmlSchemaValidateListSimpleTypeFacet
xmlSchemaValidatePredefinedType
+xmlSchemaWhiteSpaceReplace
xmlSearchNs
xmlSearchNsByHref
xmlSetNsProp
@@ -1024,6 +1026,7 @@ A:link, A:visited, A:active { text-decoration: underline } xmlThrDefDeregisterNodeDefault

Type xmlDict *:

xmlPatterncompile

Type xmlDictPtr:

xmlDictCreateSub
+xmlDictExists
xmlDictFree
xmlDictLookup
xmlDictOwns
diff --git a/doc/APIsymbols.html b/doc/APIsymbols.html index b1fd6a6c..029a8396 100644 --- a/doc/APIsymbols.html +++ b/doc/APIsymbols.html @@ -142,6 +142,7 @@ A:link, A:visited, A:active { text-decoration: underline } XML_C14N_CREATE_STACK
XML_C14N_INVALID_NODE
XML_C14N_REQUIRES_UTF8
+XML_CAST_FPTR
XML_CATALOGS_NAMESPACE
XML_CATALOG_ENTRY_BROKEN
XML_CATALOG_MISSING_ATTR
@@ -1741,6 +1742,7 @@ A:link, A:visited, A:active { text-decoration: underline } xmlDict
xmlDictCreate
xmlDictCreateSub
+xmlDictExists
xmlDictFree
xmlDictLookup
xmlDictOwns
@@ -2543,6 +2545,7 @@ A:link, A:visited, A:active { text-decoration: underline } xmlSchemaValidateStream
xmlSchemaValidityErrorFunc
xmlSchemaValidityWarningFunc
+xmlSchemaWhiteSpaceReplace
xmlSchemaWildcard
xmlSchemaWildcardNs
xmlSchemaWildcardNsPtr
diff --git a/doc/html/libxml-DOCBparser.html b/doc/html/libxml-DOCBparser.html index 4b687c51..866e2fd9 100644 --- a/doc/html/libxml-DOCBparser.html +++ b/doc/html/libxml-DOCBparser.html @@ -10,25 +10,35 @@ A:link, A:visited, A:active { text-decoration: underline } Module DOCBparser from libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

Module DOCBparser from libxml2

API Menu
API Indexes
Related links

This module is deprecated

interface for a DocBook SGML non-verifying parser This code is DEPRECATED, and should not be used anymore.

Table of Contents

Typedef xmlParserInput docbParserInput
-
Typedef xmlParserInputPtr docbParserInputPtr
+    Module DOCBparser from libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

Module DOCBparser from libxml2

API Menu
API Indexes
Related links

This module is deprecated

interface for a DocBook SGML non-verifying parser This code is DEPRECATED, and should not be used anymore.

Table of Contents

Typedef xmlParserInputPtr docbParserInputPtr
 
Typedef xmlParserCtxt docbParserCtxt
 
Typedef xmlParserCtxtPtr docbParserCtxtPtr
+
Typedef xmlParserInput docbParserInput
 
Typedef xmlDocPtr docbDocPtr
 
Typedef xmlSAXHandler docbSAXHandler
 
Typedef xmlSAXHandlerPtr docbSAXHandlerPtr
-
docbParserCtxtPtr	docbCreatePushParserCtxt	(docbSAXHandlerPtr sax, 
void * user_data,
const char * chunk,
int size,
const char * filename,
xmlCharEncoding enc)
+
void	docbFreeParserCtxt		(docbParserCtxtPtr ctxt)
+
docbDocPtr	docbParseDoc		(xmlChar * cur, 
const char * encoding)
+
docbParserCtxtPtr	docbCreateFileParserCtxt	(const char * filename, 
const char * encoding)
+
docbDocPtr	docbSAXParseFile	(const char * filename, 
const char * encoding,
docbSAXHandlerPtr sax,
void * userData)
+
docbDocPtr	docbSAXParseDoc		(xmlChar * cur, 
const char * encoding,
docbSAXHandlerPtr sax,
void * userData)
+
docbParserCtxtPtr	docbCreatePushParserCtxt	(docbSAXHandlerPtr sax, 
void * user_data,
const char * chunk,
int size,
const char * filename,
xmlCharEncoding enc)
int	docbEncodeEntities		(unsigned char * out, 
int * outlen,
const unsigned char * in,
int * inlen,
int quoteChar)
docbDocPtr	docbParseFile		(const char * filename, 
const char * encoding)
int	docbParseDocument		(docbParserCtxtPtr ctxt)
-
docbParserCtxtPtr	docbCreateFileParserCtxt	(const char * filename, 
const char * encoding)
-
docbDocPtr	docbParseDoc		(xmlChar * cur, 
const char * encoding)
-
docbDocPtr	docbSAXParseDoc		(xmlChar * cur, 
const char * encoding,
docbSAXHandlerPtr sax,
void * userData)
-
docbDocPtr	docbSAXParseFile	(const char * filename, 
const char * encoding,
docbSAXHandlerPtr sax,
void * userData)
int	docbParseChunk			(docbParserCtxtPtr ctxt, 
const char * chunk,
int size,
int terminate)
-
void	docbFreeParserCtxt		(docbParserCtxtPtr ctxt)

Description

-

Function: docbCreatePushParserCtxt

docbParserCtxtPtr	docbCreatePushParserCtxt	(docbSAXHandlerPtr sax, 
void * user_data,
const char * chunk,
int size,
const char * filename,
xmlCharEncoding enc)
+

Function: docbFreeParserCtxt

void	docbFreeParserCtxt		(docbParserCtxtPtr ctxt)
+

Free all the memory used by a parser context. However the parsed document in ctxt->myDoc is not freed.

+
ctxt:an SGML parser context

Function: docbParseDoc

docbDocPtr	docbParseDoc		(xmlChar * cur, 
const char * encoding)
+

parse an SGML in-memory document and build a tree.

+
cur:a pointer to an array of xmlChar
encoding:a free form C string describing the SGML document encoding, or NULL
Returns:the resulting document tree

Function: docbCreateFileParserCtxt

docbParserCtxtPtr	docbCreateFileParserCtxt	(const char * filename, 
const char * encoding)
+

Create a parser context for a file content. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time.

+
filename:the filename
encoding:the SGML document encoding, or NULL
Returns:the new parser context or NULL

Function: docbSAXParseFile

docbDocPtr	docbSAXParseFile	(const char * filename, 
const char * encoding,
docbSAXHandlerPtr sax,
void * userData)
+

parse an SGML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines.

+
filename:the filename
encoding:a free form C string describing the SGML document encoding, or NULL
sax:the SAX handler block
userData:if using SAX, this pointer will be provided on callbacks.
Returns:the resulting document tree

Function: docbSAXParseDoc

docbDocPtr	docbSAXParseDoc		(xmlChar * cur, 
const char * encoding,
docbSAXHandlerPtr sax,
void * userData)
+

parse an SGML in-memory document and build a tree. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines.

+
cur:a pointer to an array of xmlChar
encoding:a free form C string describing the SGML document encoding, or NULL
sax:the SAX handler block
userData:if using SAX, this pointer will be provided on callbacks.
Returns:the resulting document tree

Function: docbCreatePushParserCtxt

docbParserCtxtPtr	docbCreatePushParserCtxt	(docbSAXHandlerPtr sax, 
void * user_data,
const char * chunk,
int size,
const char * filename,
xmlCharEncoding enc)

Create a parser context for using the DocBook SGML parser in push mode To allow content encoding detection, @size should be >= 4 The value of @filename is used for fetching external entities and error/warning reports.

sax:a SAX handler
user_data:The user data returned on SAX callbacks
chunk:a pointer to an array of chars
size:number of chars in the array
filename:an optional file name or URI
enc:an optional encoding
Returns:the new parser context or NULL

Function: docbEncodeEntities

int	docbEncodeEntities		(unsigned char * out, 
int * outlen,
const unsigned char * in,
int * inlen,
int quoteChar)

Take a block of UTF-8 chars in and try to convert it to an ASCII plus SGML entities block of chars out.

@@ -36,16 +46,6 @@ A:link, A:visited, A:active { text-decoration: underline }

parse a Docbook SGML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time.

filename:the filename
encoding:a free form C string describing document encoding, or NULL
Returns:the resulting document tree

Function: docbParseDocument

int	docbParseDocument		(docbParserCtxtPtr ctxt)

parse an SGML document (and build a tree if using the standard SAX interface).

-
ctxt:an SGML parser context
Returns:0, -1 in case of error. the parser context is augmented as a result of the parsing.

Function: docbCreateFileParserCtxt

docbParserCtxtPtr	docbCreateFileParserCtxt	(const char * filename, 
const char * encoding)
-

Create a parser context for a file content. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time.

-
filename:the filename
encoding:the SGML document encoding, or NULL
Returns:the new parser context or NULL

Function: docbParseDoc

docbDocPtr	docbParseDoc		(xmlChar * cur, 
const char * encoding)
-

parse an SGML in-memory document and build a tree.

-
cur:a pointer to an array of xmlChar
encoding:a free form C string describing the SGML document encoding, or NULL
Returns:the resulting document tree

Function: docbSAXParseDoc

docbDocPtr	docbSAXParseDoc		(xmlChar * cur, 
const char * encoding,
docbSAXHandlerPtr sax,
void * userData)
-

parse an SGML in-memory document and build a tree. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines.

-
cur:a pointer to an array of xmlChar
encoding:a free form C string describing the SGML document encoding, or NULL
sax:the SAX handler block
userData:if using SAX, this pointer will be provided on callbacks.
Returns:the resulting document tree

Function: docbSAXParseFile

docbDocPtr	docbSAXParseFile	(const char * filename, 
const char * encoding,
docbSAXHandlerPtr sax,
void * userData)
-

parse an SGML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines.

-
filename:the filename
encoding:a free form C string describing the SGML document encoding, or NULL
sax:the SAX handler block
userData:if using SAX, this pointer will be provided on callbacks.
Returns:the resulting document tree

Function: docbParseChunk

int	docbParseChunk			(docbParserCtxtPtr ctxt, 
const char * chunk,
int size,
int terminate)
+
ctxt:an SGML parser context
Returns:0, -1 in case of error. the parser context is augmented as a result of the parsing.

Function: docbParseChunk

int	docbParseChunk			(docbParserCtxtPtr ctxt, 
const char * chunk,
int size,
int terminate)

Parse a Chunk of memory

-
ctxt:an XML parser context
chunk:an char array
size:the size in byte of the chunk
terminate:last chunk indicator
Returns:zero if no error, the xmlParserErrors otherwise.

Function: docbFreeParserCtxt

void	docbFreeParserCtxt		(docbParserCtxtPtr ctxt)
-

Free all the memory used by a parser context. However the parsed document in ctxt->myDoc is not freed.

-
ctxt:an SGML parser context

Daniel Veillard

+
ctxt:an XML parser context
chunk:an char array
size:the size in byte of the chunk
terminate:last chunk indicator
Returns:zero if no error, the xmlParserErrors otherwise.

Daniel Veillard

diff --git a/doc/html/libxml-SAX.html b/doc/html/libxml-SAX.html index 944b143b..44dff91f 100644 --- a/doc/html/libxml-SAX.html +++ b/doc/html/libxml-SAX.html @@ -10,113 +10,113 @@ A:link, A:visited, A:active { text-decoration: underline } Module SAX from libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

Module SAX from libxml2

API Menu
API Indexes
Related links

This module is deprecated

DEPRECATED set of SAX version 1 interfaces used to build the DOM tree.

Table of Contents

void	cdataBlock			(void * ctx, 
const xmlChar * value,
int len)
-
void	comment			(void * ctx, 
const xmlChar * value)
+ Module SAX from libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

Module SAX from libxml2

API Menu
API Indexes
Related links

This module is deprecated

DEPRECATED set of SAX version 1 interfaces used to build the DOM tree.

Table of Contents

void	comment			(void * ctx, 
const xmlChar * value)
int	checkNamespace			(void * ctx, 
xmlChar * namespace)
-
void	startElement			(void * ctx, 
const xmlChar * fullname,
const xmlChar ** atts)
-
void	inithtmlDefaultSAXHandler	(xmlSAXHandlerV1 * hdlr)
int	getColumnNumber			(void * ctx)
-
void	endElement			(void * ctx, 
const xmlChar * name)
+
void	entityDecl			(void * ctx, 
const xmlChar * name,
int type,
const xmlChar * publicId,
const xmlChar * systemId,
xmlChar * content)
void	attribute			(void * ctx, 
const xmlChar * fullname,
const xmlChar * value)
-
void	namespaceDecl			(void * ctx, 
const xmlChar * href,
const xmlChar * prefix)
xmlNsPtr	getNamespace		(void * ctx)
-
void	initdocbDefaultSAXHandler	(xmlSAXHandlerV1 * hdlr)
void	setDocumentLocator		(void * ctx, 
xmlSAXLocatorPtr loc)
+
void	initxmlDefaultSAXHandler	(xmlSAXHandlerV1 * hdlr, 
int warning)
+
void	ignorableWhitespace		(void * ctx, 
const xmlChar * ch,
int len)
+
int	hasExternalSubset		(void * ctx)
+
void	unparsedEntityDecl		(void * ctx, 
const xmlChar * name,
const xmlChar * publicId,
const xmlChar * systemId,
const xmlChar * notationName)
+
void	globalNamespace			(void * ctx, 
const xmlChar * href,
const xmlChar * prefix)
+
int	hasInternalSubset		(void * ctx)
+
void	reference			(void * ctx, 
const xmlChar * name)
+
void	notationDecl			(void * ctx, 
const xmlChar * name,
const xmlChar * publicId,
const xmlChar * systemId)
+
const xmlChar *	getSystemId		(void * ctx)
+
void	externalSubset			(void * ctx, 
const xmlChar * name,
const xmlChar * ExternalID,
const xmlChar * SystemID)
+
xmlParserInputPtr	resolveEntity	(void * ctx, 
const xmlChar * publicId,
const xmlChar * systemId)
+
void	startDocument			(void * ctx)
+
void	setNamespace			(void * ctx, 
const xmlChar * name)
+
void	cdataBlock			(void * ctx, 
const xmlChar * value,
int len)
const xmlChar *	getPublicId		(void * ctx)
+
void	inithtmlDefaultSAXHandler	(xmlSAXHandlerV1 * hdlr)
+
void	processingInstruction		(void * ctx, 
const xmlChar * target,
const xmlChar * data)
+
void	endElement			(void * ctx, 
const xmlChar * name)
+
void	namespaceDecl			(void * ctx, 
const xmlChar * href,
const xmlChar * prefix)
+
void	initdocbDefaultSAXHandler	(xmlSAXHandlerV1 * hdlr)
xmlEntityPtr	getEntity		(void * ctx, 
const xmlChar * name)
void	characters			(void * ctx, 
const xmlChar * ch,
int len)
void	elementDecl			(void * ctx, 
const xmlChar * name,
int type,
xmlElementContentPtr content)
-
void	ignorableWhitespace		(void * ctx, 
const xmlChar * ch,
int len)
-
int	hasExternalSubset		(void * ctx)
-
int	isStandalone			(void * ctx)
-
void	unparsedEntityDecl		(void * ctx, 
const xmlChar * name,
const xmlChar * publicId,
const xmlChar * systemId,
const xmlChar * notationName)
-
void	reference			(void * ctx, 
const xmlChar * name)
-
void	globalNamespace			(void * ctx, 
const xmlChar * href,
const xmlChar * prefix)
-
void	initxmlDefaultSAXHandler	(xmlSAXHandlerV1 * hdlr, 
int warning)
-
int	hasInternalSubset		(void * ctx)
-
void	processingInstruction		(void * ctx, 
const xmlChar * target,
const xmlChar * data)
+
void	startElement			(void * ctx, 
const xmlChar * fullname,
const xmlChar ** atts)
xmlEntityPtr	getParameterEntity	(void * ctx, 
const xmlChar * name)
void	attributeDecl			(void * ctx, 
const xmlChar * elem,
const xmlChar * fullname,
int type,
int def,
const xmlChar * defaultValue,
xmlEnumerationPtr tree)
-
void	notationDecl			(void * ctx, 
const xmlChar * name,
const xmlChar * publicId,
const xmlChar * systemId)
-
void	entityDecl			(void * ctx, 
const xmlChar * name,
int type,
const xmlChar * publicId,
const xmlChar * systemId,
xmlChar * content)
-
void	setNamespace			(void * ctx, 
const xmlChar * name)
-
void	externalSubset			(void * ctx, 
const xmlChar * name,
const xmlChar * ExternalID,
const xmlChar * SystemID)
-
xmlParserInputPtr	resolveEntity	(void * ctx, 
const xmlChar * publicId,
const xmlChar * systemId)
-
const xmlChar *	getSystemId		(void * ctx)
-
void	startDocument			(void * ctx)
+
int	isStandalone			(void * ctx)
void	internalSubset			(void * ctx, 
const xmlChar * name,
const xmlChar * ExternalID,
const xmlChar * SystemID)
void	endDocument			(void * ctx)
int	getLineNumber			(void * ctx)

Description

-

Function: cdataBlock

void	cdataBlock			(void * ctx, 
const xmlChar * value,
int len)
-

called when a pcdata block has been parsed DEPRECATED: use xmlSAX2CDataBlock()

-
ctx:the user data (XML parser context)
value:The pcdata content
len:the block length

Function: comment

void	comment			(void * ctx, 
const xmlChar * value)
+

Function: comment

void	comment			(void * ctx, 
const xmlChar * value)

A comment has been parsed. DEPRECATED: use xmlSAX2Comment()

ctx:the user data (XML parser context)
value:the comment content

Function: checkNamespace

int	checkNamespace			(void * ctx, 
xmlChar * namespace)

Check that the current element namespace is the same as the one read upon parsing. DEPRECATED

-
ctx:the user data (XML parser context)
namespace:the namespace to check against
Returns:1 if true 0 otherwise

Function: startElement

void	startElement			(void * ctx, 
const xmlChar * fullname,
const xmlChar ** atts)
-

called when an opening tag has been processed. DEPRECATED: use xmlSAX2StartElement()

-
ctx:the user data (XML parser context)
fullname:The element name, including namespace prefix
atts:An array of name/value attributes pairs, NULL terminated

Function: inithtmlDefaultSAXHandler

void	inithtmlDefaultSAXHandler	(xmlSAXHandlerV1 * hdlr)
-

Initialize the default HTML SAX version 1 handler DEPRECATED: use xmlSAX2InitHtmlDefaultSAXHandler() for the new SAX2 blocks

-
hdlr:the SAX handler

Function: getColumnNumber

int	getColumnNumber			(void * ctx)
+
ctx:the user data (XML parser context)
namespace:the namespace to check against
Returns:1 if true 0 otherwise

Function: getColumnNumber

int	getColumnNumber			(void * ctx)

Provide the column number of the current parsing point. DEPRECATED: use xmlSAX2GetColumnNumber()

-
ctx:the user data (XML parser context)
Returns:an int

Function: endElement

void	endElement			(void * ctx, 
const xmlChar * name)
-

called when the end of an element has been detected. DEPRECATED: use xmlSAX2EndElement()

-
ctx:the user data (XML parser context)
name:The element name

Function: attribute

void	attribute			(void * ctx, 
const xmlChar * fullname,
const xmlChar * value)
+
ctx:the user data (XML parser context)
Returns:an int

Function: entityDecl

void	entityDecl			(void * ctx, 
const xmlChar * name,
int type,
const xmlChar * publicId,
const xmlChar * systemId,
xmlChar * content)
+

An entity definition has been parsed DEPRECATED: use xmlSAX2EntityDecl()

+
ctx:the user data (XML parser context)
name:the entity name
type:the entity type
publicId:The public ID of the entity
systemId:The system ID of the entity
content:the entity value (without processing).

Function: attribute

void	attribute			(void * ctx, 
const xmlChar * fullname,
const xmlChar * value)

Handle an attribute that has been read by the parser. The default handling is to convert the attribute into an DOM subtree and past it in a new xmlAttr element added to the element. DEPRECATED: use xmlSAX2Attribute()

-
ctx:the user data (XML parser context)
fullname:The attribute name, including namespace prefix
value:The attribute value

Function: namespaceDecl

void	namespaceDecl			(void * ctx, 
const xmlChar * href,
const xmlChar * prefix)
-

A namespace has been parsed. DEPRECATED

-
ctx:the user data (XML parser context)
href:the namespace associated URN
prefix:the namespace prefix

Function: getNamespace

xmlNsPtr	getNamespace		(void * ctx)
+
ctx:the user data (XML parser context)
fullname:The attribute name, including namespace prefix
value:The attribute value

Function: getNamespace

xmlNsPtr	getNamespace		(void * ctx)

Get the current element namespace. DEPRECATED

-
ctx:the user data (XML parser context)
Returns:the xmlNsPtr or NULL if none

Function: initdocbDefaultSAXHandler

void	initdocbDefaultSAXHandler	(xmlSAXHandlerV1 * hdlr)
-

Initialize the default DocBook SAX version 1 handler DEPRECATED: use xmlSAX2InitDocbDefaultSAXHandler() for the new SAX2 blocks

-
hdlr:the SAX handler

Function: setDocumentLocator

void	setDocumentLocator		(void * ctx, 
xmlSAXLocatorPtr loc)
+
ctx:the user data (XML parser context)
Returns:the xmlNsPtr or NULL if none

Function: setDocumentLocator

void	setDocumentLocator		(void * ctx, 
xmlSAXLocatorPtr loc)

Receive the document locator at startup, actually xmlDefaultSAXLocator Everything is available on the context, so this is useless in our case. DEPRECATED

-
ctx:the user data (XML parser context)
loc:A SAX Locator

Function: getPublicId

const xmlChar *	getPublicId		(void * ctx)
+
ctx:the user data (XML parser context)
loc:A SAX Locator

Function: initxmlDefaultSAXHandler

void	initxmlDefaultSAXHandler	(xmlSAXHandlerV1 * hdlr, 
int warning)
+

Initialize the default XML SAX version 1 handler DEPRECATED: use xmlSAX2InitDefaultSAXHandler() for the new SAX2 blocks

+
hdlr:the SAX handler
warning:flag if non-zero sets the handler warning procedure

Function: ignorableWhitespace

void	ignorableWhitespace		(void * ctx, 
const xmlChar * ch,
int len)
+

receiving some ignorable whitespaces from the parser. UNUSED: by default the DOM building will use characters DEPRECATED: use xmlSAX2IgnorableWhitespace()

+
ctx:the user data (XML parser context)
ch:a xmlChar string
len:the number of xmlChar

Function: hasExternalSubset

int	hasExternalSubset		(void * ctx)
+

Does this document has an external subset DEPRECATED: use xmlSAX2HasExternalSubset()

+
ctx:the user data (XML parser context)
Returns:1 if true

Function: unparsedEntityDecl

void	unparsedEntityDecl		(void * ctx, 
const xmlChar * name,
const xmlChar * publicId,
const xmlChar * systemId,
const xmlChar * notationName)
+

What to do when an unparsed entity declaration is parsed DEPRECATED: use xmlSAX2UnparsedEntityDecl()

+
ctx:the user data (XML parser context)
name:The name of the entity
publicId:The public ID of the entity
systemId:The system ID of the entity
notationName:the name of the notation

Function: globalNamespace

void	globalNamespace			(void * ctx, 
const xmlChar * href,
const xmlChar * prefix)
+

An old global namespace has been parsed. DEPRECATED

+
ctx:the user data (XML parser context)
href:the namespace associated URN
prefix:the namespace prefix

Function: hasInternalSubset

int	hasInternalSubset		(void * ctx)
+

Does this document has an internal subset DEPRECATED: use xmlSAX2HasInternalSubset()

+
ctx:the user data (XML parser context)
Returns:1 if true

Function: reference

void	reference			(void * ctx, 
const xmlChar * name)
+

called when an entity reference is detected. DEPRECATED: use xmlSAX2Reference()

+
ctx:the user data (XML parser context)
name:The entity name

Function: notationDecl

void	notationDecl			(void * ctx, 
const xmlChar * name,
const xmlChar * publicId,
const xmlChar * systemId)
+

What to do when a notation declaration has been parsed. DEPRECATED: use xmlSAX2NotationDecl()

+
ctx:the user data (XML parser context)
name:The name of the notation
publicId:The public ID of the entity
systemId:The system ID of the entity

Function: getSystemId

const xmlChar *	getSystemId		(void * ctx)
+

Provides the system ID, basically URL or filename e.g. http://www.sgmlsource.com/dtds/memo.dtd DEPRECATED: use xmlSAX2GetSystemId()

+
ctx:the user data (XML parser context)
Returns:a xmlChar *

Function: externalSubset

void	externalSubset			(void * ctx, 
const xmlChar * name,
const xmlChar * ExternalID,
const xmlChar * SystemID)
+

Callback on external subset declaration. DEPRECATED: use xmlSAX2ExternalSubset()

+
ctx:the user data (XML parser context)
name:the root element name
ExternalID:the external ID
SystemID:the SYSTEM ID (e.g. filename or URL)

Function: resolveEntity

xmlParserInputPtr	resolveEntity	(void * ctx, 
const xmlChar * publicId,
const xmlChar * systemId)
+

The entity loader, to control the loading of external entities, the application can either: - override this resolveEntity() callback in the SAX block - or better use the xmlSetExternalEntityLoader() function to set up it's own entity resolution routine DEPRECATED: use xmlSAX2ResolveEntity()

+
ctx:the user data (XML parser context)
publicId:The public ID of the entity
systemId:The system ID of the entity
Returns:the xmlParserInputPtr if inlined or NULL for DOM behaviour.

Function: startDocument

void	startDocument			(void * ctx)
+

called when the document start being processed. DEPRECATED: use xmlSAX2StartDocument()

+
ctx:the user data (XML parser context)

Function: setNamespace

void	setNamespace			(void * ctx, 
const xmlChar * name)
+

Set the current element namespace. DEPRECATED

+
ctx:the user data (XML parser context)
name:the namespace prefix

Function: cdataBlock

void	cdataBlock			(void * ctx, 
const xmlChar * value,
int len)
+

called when a pcdata block has been parsed DEPRECATED: use xmlSAX2CDataBlock()

+
ctx:the user data (XML parser context)
value:The pcdata content
len:the block length

Function: getPublicId

const xmlChar *	getPublicId		(void * ctx)

Provides the public ID e.g. "-//SGMLSOURCE//DTD DEMO//EN" DEPRECATED: use xmlSAX2GetPublicId()

-
ctx:the user data (XML parser context)
Returns:a xmlChar *

Function: getEntity

xmlEntityPtr	getEntity		(void * ctx, 
const xmlChar * name)
+
ctx:the user data (XML parser context)
Returns:a xmlChar *

Function: inithtmlDefaultSAXHandler

void	inithtmlDefaultSAXHandler	(xmlSAXHandlerV1 * hdlr)
+

Initialize the default HTML SAX version 1 handler DEPRECATED: use xmlSAX2InitHtmlDefaultSAXHandler() for the new SAX2 blocks

+
hdlr:the SAX handler

Function: processingInstruction

void	processingInstruction		(void * ctx, 
const xmlChar * target,
const xmlChar * data)
+

A processing instruction has been parsed. DEPRECATED: use xmlSAX2ProcessingInstruction()

+
ctx:the user data (XML parser context)
target:the target name
data:the PI data's

Function: endElement

void	endElement			(void * ctx, 
const xmlChar * name)
+

called when the end of an element has been detected. DEPRECATED: use xmlSAX2EndElement()

+
ctx:the user data (XML parser context)
name:The element name

Function: namespaceDecl

void	namespaceDecl			(void * ctx, 
const xmlChar * href,
const xmlChar * prefix)
+

A namespace has been parsed. DEPRECATED

+
ctx:the user data (XML parser context)
href:the namespace associated URN
prefix:the namespace prefix

Function: initdocbDefaultSAXHandler

void	initdocbDefaultSAXHandler	(xmlSAXHandlerV1 * hdlr)
+

Initialize the default DocBook SAX version 1 handler DEPRECATED: use xmlSAX2InitDocbDefaultSAXHandler() for the new SAX2 blocks

+
hdlr:the SAX handler

Function: getEntity

xmlEntityPtr	getEntity		(void * ctx, 
const xmlChar * name)

Get an entity by name DEPRECATED: use xmlSAX2GetEntity()

ctx:the user data (XML parser context)
name:The entity name
Returns:the xmlEntityPtr if found.

Function: characters

void	characters			(void * ctx, 
const xmlChar * ch,
int len)

receiving some chars from the parser. DEPRECATED: use xmlSAX2Characters()

ctx:the user data (XML parser context)
ch:a xmlChar string
len:the number of xmlChar

Function: elementDecl

void	elementDecl			(void * ctx, 
const xmlChar * name,
int type,
xmlElementContentPtr content)

An element definition has been parsed DEPRECATED: use xmlSAX2ElementDecl()

-
ctx:the user data (XML parser context)
name:the element name
type:the element type
content:the element value tree

Function: ignorableWhitespace

void	ignorableWhitespace		(void * ctx, 
const xmlChar * ch,
int len)
-

receiving some ignorable whitespaces from the parser. UNUSED: by default the DOM building will use characters DEPRECATED: use xmlSAX2IgnorableWhitespace()

-
ctx:the user data (XML parser context)
ch:a xmlChar string
len:the number of xmlChar

Function: hasExternalSubset

int	hasExternalSubset		(void * ctx)
-

Does this document has an external subset DEPRECATED: use xmlSAX2HasExternalSubset()

-
ctx:the user data (XML parser context)
Returns:1 if true

Function: isStandalone

int	isStandalone			(void * ctx)
-

Is this document tagged standalone ? DEPRECATED: use xmlSAX2IsStandalone()

-
ctx:the user data (XML parser context)
Returns:1 if true

Function: unparsedEntityDecl

void	unparsedEntityDecl		(void * ctx, 
const xmlChar * name,
const xmlChar * publicId,
const xmlChar * systemId,
const xmlChar * notationName)
-

What to do when an unparsed entity declaration is parsed DEPRECATED: use xmlSAX2UnparsedEntityDecl()

-
ctx:the user data (XML parser context)
name:The name of the entity
publicId:The public ID of the entity
systemId:The system ID of the entity
notationName:the name of the notation

Function: reference

void	reference			(void * ctx, 
const xmlChar * name)
-

called when an entity reference is detected. DEPRECATED: use xmlSAX2Reference()

-
ctx:the user data (XML parser context)
name:The entity name

Function: globalNamespace

void	globalNamespace			(void * ctx, 
const xmlChar * href,
const xmlChar * prefix)
-

An old global namespace has been parsed. DEPRECATED

-
ctx:the user data (XML parser context)
href:the namespace associated URN
prefix:the namespace prefix

Function: initxmlDefaultSAXHandler

void	initxmlDefaultSAXHandler	(xmlSAXHandlerV1 * hdlr, 
int warning)
-

Initialize the default XML SAX version 1 handler DEPRECATED: use xmlSAX2InitDefaultSAXHandler() for the new SAX2 blocks

-
hdlr:the SAX handler
warning:flag if non-zero sets the handler warning procedure

Function: hasInternalSubset

int	hasInternalSubset		(void * ctx)
-

Does this document has an internal subset DEPRECATED: use xmlSAX2HasInternalSubset()

-
ctx:the user data (XML parser context)
Returns:1 if true

Function: processingInstruction

void	processingInstruction		(void * ctx, 
const xmlChar * target,
const xmlChar * data)
-

A processing instruction has been parsed. DEPRECATED: use xmlSAX2ProcessingInstruction()

-
ctx:the user data (XML parser context)
target:the target name
data:the PI data's

Function: getParameterEntity

xmlEntityPtr	getParameterEntity	(void * ctx, 
const xmlChar * name)
+
ctx:the user data (XML parser context)
name:the element name
type:the element type
content:the element value tree

Function: startElement

void	startElement			(void * ctx, 
const xmlChar * fullname,
const xmlChar ** atts)
+

called when an opening tag has been processed. DEPRECATED: use xmlSAX2StartElement()

+
ctx:the user data (XML parser context)
fullname:The element name, including namespace prefix
atts:An array of name/value attributes pairs, NULL terminated

Function: getParameterEntity

xmlEntityPtr	getParameterEntity	(void * ctx, 
const xmlChar * name)

Get a parameter entity by name DEPRECATED: use xmlSAX2GetParameterEntity()

ctx:the user data (XML parser context)
name:The entity name
Returns:the xmlEntityPtr if found.

Function: attributeDecl

void	attributeDecl			(void * ctx, 
const xmlChar * elem,
const xmlChar * fullname,
int type,
int def,
const xmlChar * defaultValue,
xmlEnumerationPtr tree)

An attribute definition has been parsed DEPRECATED: use xmlSAX2AttributeDecl()

-
ctx:the user data (XML parser context)
elem:the name of the element
fullname:the attribute name
type:the attribute type
def:the type of default value
defaultValue:the attribute default value
tree:the tree of enumerated value set

Function: notationDecl

void	notationDecl			(void * ctx, 
const xmlChar * name,
const xmlChar * publicId,
const xmlChar * systemId)
-

What to do when a notation declaration has been parsed. DEPRECATED: use xmlSAX2NotationDecl()

-
ctx:the user data (XML parser context)
name:The name of the notation
publicId:The public ID of the entity
systemId:The system ID of the entity

Function: entityDecl

void	entityDecl			(void * ctx, 
const xmlChar * name,
int type,
const xmlChar * publicId,
const xmlChar * systemId,
xmlChar * content)
-

An entity definition has been parsed DEPRECATED: use xmlSAX2EntityDecl()

-
ctx:the user data (XML parser context)
name:the entity name
type:the entity type
publicId:The public ID of the entity
systemId:The system ID of the entity
content:the entity value (without processing).

Function: setNamespace

void	setNamespace			(void * ctx, 
const xmlChar * name)
-

Set the current element namespace. DEPRECATED

-
ctx:the user data (XML parser context)
name:the namespace prefix

Function: externalSubset

void	externalSubset			(void * ctx, 
const xmlChar * name,
const xmlChar * ExternalID,
const xmlChar * SystemID)
-

Callback on external subset declaration. DEPRECATED: use xmlSAX2ExternalSubset()

-
ctx:the user data (XML parser context)
name:the root element name
ExternalID:the external ID
SystemID:the SYSTEM ID (e.g. filename or URL)

Function: resolveEntity

xmlParserInputPtr	resolveEntity	(void * ctx, 
const xmlChar * publicId,
const xmlChar * systemId)
-

The entity loader, to control the loading of external entities, the application can either: - override this resolveEntity() callback in the SAX block - or better use the xmlSetExternalEntityLoader() function to set up it's own entity resolution routine DEPRECATED: use xmlSAX2ResolveEntity()

-
ctx:the user data (XML parser context)
publicId:The public ID of the entity
systemId:The system ID of the entity
Returns:the xmlParserInputPtr if inlined or NULL for DOM behaviour.

Function: getSystemId

const xmlChar *	getSystemId		(void * ctx)
-

Provides the system ID, basically URL or filename e.g. http://www.sgmlsource.com/dtds/memo.dtd DEPRECATED: use xmlSAX2GetSystemId()

-
ctx:the user data (XML parser context)
Returns:a xmlChar *

Function: startDocument

void	startDocument			(void * ctx)
-

called when the document start being processed. DEPRECATED: use xmlSAX2StartDocument()

-
ctx:the user data (XML parser context)

Function: internalSubset

void	internalSubset			(void * ctx, 
const xmlChar * name,
const xmlChar * ExternalID,
const xmlChar * SystemID)
+
ctx:the user data (XML parser context)
elem:the name of the element
fullname:the attribute name
type:the attribute type
def:the type of default value
defaultValue:the attribute default value
tree:the tree of enumerated value set

Function: isStandalone

int	isStandalone			(void * ctx)
+

Is this document tagged standalone ? DEPRECATED: use xmlSAX2IsStandalone()

+
ctx:the user data (XML parser context)
Returns:1 if true

Function: internalSubset

void	internalSubset			(void * ctx, 
const xmlChar * name,
const xmlChar * ExternalID,
const xmlChar * SystemID)

Callback on internal subset declaration. DEPRECATED: use xmlSAX2InternalSubset()

ctx:the user data (XML parser context)
name:the root element name
ExternalID:the external ID
SystemID:the SYSTEM ID (e.g. filename or URL)

Function: endDocument

void	endDocument			(void * ctx)

called when the document end has been detected. DEPRECATED: use xmlSAX2EndDocument()

diff --git a/doc/html/libxml-dict.html b/doc/html/libxml-dict.html index 3853b1df..d22c9d60 100644 --- a/doc/html/libxml-dict.html +++ b/doc/html/libxml-dict.html @@ -15,6 +15,7 @@ The content of this structure is not made public by the API.
Typedef xmlDict * xmlDictPtr
 
xmlDictPtr	xmlDictCreate		(void)
xmlDictPtr	xmlDictCreateSub	(xmlDictPtr sub)
+
const xmlChar *	xmlDictExists		(xmlDictPtr dict, 
const xmlChar * name,
int len)
void	xmlDictFree			(xmlDictPtr dict)
const xmlChar *	xmlDictLookup		(xmlDictPtr dict, 
const xmlChar * name,
int len)
int	xmlDictOwns			(xmlDictPtr dict, 
const xmlChar * str)
@@ -28,10 +29,12 @@ The content of this structure is not made public by the API.

Create a new dictionary

Returns:the newly created dictionnary, or NULL if an error occured.

Function: xmlDictCreateSub

xmlDictPtr	xmlDictCreateSub	(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: xmlDictFree

void	xmlDictFree			(xmlDictPtr dict)
+
sub:an existing dictionnary
Returns:the newly created dictionnary, or NULL if an error occured.

Function: xmlDictExists

const xmlChar *	xmlDictExists		(xmlDictPtr dict, 
const 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			(xmlDictPtr dict)

Free the hash @dict and its contents. The userdata is deallocated with @f if provided.

dict:the dictionnary

Function: xmlDictLookup

const xmlChar *	xmlDictLookup		(xmlDictPtr dict, 
const xmlChar * name,
int len)
-

Add the @name to the hash @dict if not present.

+

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			(xmlDictPtr dict, 
const 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 xmlChar *	xmlDictQLookup		(xmlDictPtr dict, 
const xmlChar * prefix,
const xmlChar * name)
diff --git a/doc/html/libxml-hash.html b/doc/html/libxml-hash.html index 84863d9f..10224a6e 100644 --- a/doc/html/libxml-hash.html +++ b/doc/html/libxml-hash.html @@ -10,7 +10,7 @@ A:link, A:visited, A:active { text-decoration: underline } Module hash from libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

Module hash from libxml2

API Menu
API Indexes
Related links

Table of Contents

Structure xmlHashTable
struct _xmlHashTable + Module hash from libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

Module hash from libxml2

API Menu
API Indexes
Related links

Table of Contents

#define XML_CAST_FPTR
Structure xmlHashTable
struct _xmlHashTable The content of this structure is not made public by the API.
Typedef xmlHashTable * xmlHashTablePtr
 
int	xmlHashAddEntry			(xmlHashTablePtr table, 
const xmlChar * name,
void * userdata)
@@ -49,6 +49,7 @@ void xmlHashScannerFull (void * payload,
int xmlHashUpdateEntry2 (xmlHashTablePtr table,
const xmlChar * name,
const xmlChar * name2,
void * userdata,
xmlHashDeallocator f)
int	xmlHashUpdateEntry3		(xmlHashTablePtr table, 
const xmlChar * name,
const xmlChar * name2,
const xmlChar * name3,
void * userdata,
xmlHashDeallocator f)

Description

+

Macro: XML_CAST_FPTR

#define XML_CAST_FPTR

Macro to do a casting from an object pointer to a function pointer without encountering a warning from gcc

Structure xmlHashTable

Structure xmlHashTable
struct _xmlHashTable { The content of this structure is not made public by the API. }

Function: xmlHashAddEntry

int	xmlHashAddEntry			(xmlHashTablePtr table, 
const xmlChar * name,
void * userdata)
diff --git a/doc/html/libxml-xmlmemory.html b/doc/html/libxml-xmlmemory.html index 23d34167..17f0bf81 100644 --- a/doc/html/libxml-xmlmemory.html +++ b/doc/html/libxml-xmlmemory.html @@ -52,7 +52,7 @@ char * xmlStrdupFunc (const char * str)

Description

Macro: DEBUG_MEMORY

#define DEBUG_MEMORY

DEBUG_MEMORY replaces the allocator with a collect and debug shell to the libc allocator. DEBUG_MEMORY should only be activated when debugging libxml i.e. if libxml has been configured with --with-debug-mem too. #define DEBUG_MEMORY_FREED #define DEBUG_MEMORY_LOCATION

Function: xmlCleanupMemory

void	xmlCleanupMemory		(void)
-

Free up all the memory associated with memorys

+

Free up all the memory allocated by the library for its own use. This should not be called by user level code.

Function type: xmlFreeFunc

Function type: xmlFreeFunc
 void	xmlFreeFunc			(void * mem)
 

Signature for a free() implementation.

mem:an already allocated block of memory

diff --git a/doc/html/libxml-xmlschemastypes.html b/doc/html/libxml-xmlschemastypes.html index 44ba94b7..e97fa4b6 100644 --- a/doc/html/libxml-xmlschemastypes.html +++ b/doc/html/libxml-xmlschemastypes.html @@ -29,6 +29,7 @@ A:link, A:visited, A:active { text-decoration: underline }
int	xmlSchemaValidateLengthFacet	(xmlSchemaTypePtr type, 
xmlSchemaFacetPtr facet,
const xmlChar * value,
xmlSchemaValPtr val,
unsigned long * length)
int	xmlSchemaValidateListSimpleTypeFacet	(xmlSchemaFacetPtr facet, 
const xmlChar * value,
unsigned long actualLen,
unsigned long * expectedLen)
int	xmlSchemaValidatePredefinedType	(xmlSchemaTypePtr type, 
const xmlChar * value,
xmlSchemaValPtr * val)
+
xmlChar *	xmlSchemaWhiteSpaceReplace	(const xmlChar * value)

Description

Function: xmlSchemaCheckFacet

int	xmlSchemaCheckFacet		(xmlSchemaFacetPtr facet, 
xmlSchemaTypePtr typeDecl,
xmlSchemaParserCtxtPtr ctxt,
const xmlChar * name)

Checks the default values types, especially for facets

@@ -68,4 +69,6 @@ A:link, A:visited, A:active { text-decoration: underline }

Checks the value of a list simple type against a facet.

facet:the facet to check
value:the lexical repr of the value to validate
actualLen:the number of list items
expectedLen:the resulting expected number of list items
Returns:0 if the value is valid, a positive error code number otherwise and -1 in case of an internal error.

Function: xmlSchemaValidatePredefinedType

int	xmlSchemaValidatePredefinedType	(xmlSchemaTypePtr type, 
const xmlChar * value,
xmlSchemaValPtr * val)

Check that a value conforms to the lexical space of the predefined type. if true a value is computed and returned in @val.

-
type:the predefined type
value:the value to check
val:the return computed value
Returns:0 if this validates, a positive error code number otherwise and -1 in case of internal or API error.

Daniel Veillard

+
type:the predefined type
value:the value to check
val:the return computed value
Returns:0 if this validates, a positive error code number otherwise and -1 in case of internal or API error.

Function: xmlSchemaWhiteSpaceReplace

xmlChar *	xmlSchemaWhiteSpaceReplace	(const xmlChar * value)
+

Replaces 0xd, 0x9 and 0xa with a space.

+
value:a value
Returns:the new string or NULL if no change was required.

Daniel Veillard

diff --git a/doc/libxml2-api.xml b/doc/libxml2-api.xml index 6a93755d..4e5fe8d2 100644 --- a/doc/libxml2-api.xml +++ b/doc/libxml2-api.xml @@ -6,23 +6,23 @@ interface for a DocBook SGML non-verifying parser This code is DEPRECATED, and should not be used anymore. Daniel Veillard - + + + + + + - - - - - interface for an HTML 4.0 non-verifying parser @@ -32,15 +32,15 @@ - - - + + + @@ -58,43 +58,43 @@ - - - - - - - + - - - - - + + + + + + + + + + + + + + + + + + - - - - - - + - - specific APIs to process HTML tree, especially serialization @@ -105,21 +105,21 @@ + - - + + - - + - + @@ -128,40 +128,40 @@ DEPRECATED set of SAX version 1 interfaces used to build the DOM tree. Daniel Veillard - - - - + - - + + + + + + + + + + + + + + + + + + + - - - - - - - - - + - - - - - - - + @@ -170,43 +170,43 @@ SAX2 parser interface used to build the DOM tree those are the default SAX2 interfaces used by the library when building DOM tree. Daniel Veillard - - - - - - + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - @@ -225,53 +225,53 @@ Daniel Veillard - - - + + + - - - - - + - - - - - + - - - - - - - + + + + + + + + + + + + + + + Unicode character range checking @@ -279,43 +279,43 @@ William Brack <wbrack@mmm.com.hk> + - + - + - - - - + + + + + - - - - - - - - + + + + + + Tree debugging APIs @@ -324,36 +324,36 @@ - + + + + + + + + + + + + + - + - - - - - - - - + - - - - - - - - - - + + + + + string dictionnary @@ -361,14 +361,15 @@ Daniel Veillard - + + + + - - interface for the encoding conversion functions @@ -379,10 +380,14 @@ + + + + - + @@ -392,11 +397,7 @@ - - - - @@ -429,18 +430,18 @@ this module provides some of the entity API needed for the parser and applications. Daniel Veillard - - + + - + @@ -449,11 +450,11 @@ - + - - + + interface for all global variables of the library @@ -462,100 +463,101 @@ - - - - - - - - - - + - - - - - - - - + - + + + + + + + + + + + + + + + + + - - - - + + + + + + + + + + + + + - - - + - - - - - - - chained hash tables Bjorn Reese <bjorn.reese@systematic.dk> + - - - - - - - + + - - - - - + - + + + + + + + + + + @@ -566,64 +568,64 @@ + + + + + + + + + + + + + - - - - - - - - - - - - - - - - + + + minimal FTP implementation minimal FTP implementation allowing to fetch resources like external subset. Daniel Veillard - - - - + + + + + + + + + - - - - - + - minimal HTTP implementation @@ -634,12 +636,12 @@ - + - + @@ -656,78 +658,117 @@ - - - - + - - - - - - - - - - - - + - - - - + + + + + + + + + + + + + + + + + + - - - - + + + + - - + + - - + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -735,83 +776,44 @@ - - - - + - - - - - - - - - - - - - - - - - - + + + + + - - - - - - - - - - - - - - - - + - - - - - - - - + - @@ -820,126 +822,126 @@ Daniel Veillard - - - - - - - - - - - - + - - - + + + + + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - + - - - + - - - - - - - + - - - - - - - - - - - + + - - - - - - - + - @@ -966,17 +968,17 @@ - + - + - + @@ -994,40 +996,40 @@ - + + + - - - - - - - - - - + + + + + + + + @@ -1055,25 +1057,24 @@ - + + - - - + - + @@ -1082,6 +1083,7 @@ + @@ -1096,7 +1098,7 @@ - + @@ -1105,133 +1107,133 @@ - - - - - - - - - - - + + - - + - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - + - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - + - - + - + @@ -1248,9 +1250,9 @@ - - + + @@ -1260,33 +1262,33 @@ - + interfaces for tree manipulation this module describes the structures found in an tree resulting from an XML or HTML parsing, as well as the API provided for various processing on that tree Daniel Veillard - - - + + + - + - + - + - + @@ -1295,7 +1297,7 @@ - + @@ -1308,16 +1310,16 @@ - + - + - + @@ -1329,46 +1331,46 @@ + - + - + - - - + + - + - + + - - + - + - - + + @@ -1378,158 +1380,158 @@ - - + + - - + - - - - - - + - - - - - - - - + + - + - - - - - - - + + - - - - - - - - - - - + + - - - - - - - - + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - + - - - - - - - - + - - - - - - - - - - - - - - - - - - - - + + - - @@ -1564,20 +1566,20 @@ - + - + - + @@ -1586,14 +1588,14 @@ - - + + - + + - @@ -1601,22 +1603,21 @@ - - + + - + - - + + - - + + - @@ -1633,10 +1634,11 @@ - - + + + @@ -1651,16 +1653,17 @@ Daniel Veillard - - - + + + + @@ -1668,7 +1671,6 @@ - unfinished XLink detection module @@ -1676,32 +1678,32 @@ Daniel Veillard - + - + - + + + + + - - - - + + + + + - - - - - @@ -1726,7 +1728,7 @@ - + @@ -1764,7 +1766,7 @@ - + API to build regexp automata @@ -1782,14 +1784,14 @@ - + - + @@ -1798,12 +1800,15 @@ the API used to report errors Daniel Veillard - + + + + @@ -1816,13 +1821,12 @@ - - + @@ -1841,15 +1845,14 @@ - - - + + - + @@ -1868,6 +1871,7 @@ + @@ -1875,7 +1879,7 @@ - + @@ -1883,25 +1887,23 @@ - + - - - + - + @@ -1913,27 +1915,26 @@ - - + - + - + - + - + - + - + @@ -1947,14 +1948,14 @@ - + - + - + @@ -1966,7 +1967,6 @@ - @@ -1982,15 +1982,14 @@ - + - + - @@ -2012,7 +2011,7 @@ - + @@ -2024,11 +2023,11 @@ - + - + @@ -2037,14 +2036,14 @@ - + - + @@ -2054,40 +2053,41 @@ - + - - + + + - + + - + - + - + - - - - + + + + - @@ -2103,32 +2103,30 @@ - - - + + - + - + - - + - + - + @@ -2144,23 +2142,26 @@ - - - + + + - + - + + - + + + @@ -2173,8 +2174,10 @@ + + @@ -2183,9 +2186,9 @@ - + - + @@ -2193,25 +2196,26 @@ + - + - + - + - + @@ -2220,7 +2224,7 @@ - + @@ -2235,28 +2239,29 @@ - + - + + - + - + - + @@ -2264,9 +2269,9 @@ - + - + @@ -2282,16 +2287,15 @@ - + - + - - + @@ -2307,7 +2311,7 @@ - + @@ -2321,14 +2325,14 @@ - + - + @@ -2343,41 +2347,39 @@ - + - + - - + + - - + - - + - + - + - + - + - + @@ -2387,17 +2389,17 @@ - + - + - + @@ -2405,18 +2407,18 @@ - + + - + - - + @@ -2430,7 +2432,7 @@ - + @@ -2446,40 +2448,41 @@ - + - + - + - - + - + - + + - + + - + - - - + + + @@ -2489,35 +2492,34 @@ - - - + - + - + - + + - + - - + + - + @@ -2537,12 +2539,12 @@ - + - + @@ -2565,26 +2567,26 @@ + + + + + + + - - + - - - - - - @@ -2593,41 +2595,41 @@ API of the XML streaming API based on C# interfaces. Daniel Veillard - - - - - - + - - - - - - - - + - + - + + + + + + + + + + + + + - - + + @@ -2641,21 +2643,21 @@ - + - - + + @@ -2670,7 +2672,7 @@ - + @@ -2689,7 +2691,7 @@ - + @@ -2701,14 +2703,14 @@ - + - - + + @@ -2720,14 +2722,14 @@ - + - - - + + + @@ -2737,12 +2739,12 @@ - - - + + + @@ -2752,31 +2754,31 @@ Daniel Veillard - - - - - - - - - - - - + - - + + - + + - - + + + + + + + + + + + + @@ -2788,22 +2790,22 @@ + - + - - - - + + + @@ -2816,17 +2818,18 @@ - - + + + - + @@ -2837,126 +2840,168 @@ - - - - - - - - - + - - - - - - - - - + + + + + + + + + + + + + + + + + Unicode character APIs API for the Unicode character APIs This file is automatically generated from the UCS description files of the Unicode Character Database Daniel Veillard - - - - - + - - + - - + - - - + - - - + + - - - - - - - - - - - - - - - - + + + + + - + - - - - + - + - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + @@ -2966,115 +3011,73 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + - - - - - + - - - - - - - - - - - + + + - - - - - - - + + - - - + + - compile-time version informations compile-time version informations for the XML library Daniel Veillard - - - - - - - + - - - - - - - - - + - + + + + + + + + + + + + + + + @@ -3092,7 +3095,7 @@ - + @@ -3106,6 +3109,7 @@ + @@ -3113,18 +3117,17 @@ - + - - + @@ -3133,9 +3136,8 @@ + - - @@ -3156,7 +3158,8 @@ - + + @@ -3176,262 +3179,262 @@ - + + + + + + + + + + + + + + - - - - - - - - - + - - - - - - - + + - - + + - + - + - + + - - - + - + - - - - - - + - - + - - - - + + - - - - + - + + + + + + + + + + + + + + + + + + + - - - - - - internal interfaces for XML Path Language implementation internal interfaces for XML Path Language implementation used to build new modules on top of XPath like XPointer and XSLT Daniel Veillard - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - + - - + + - - + + - - - - - - - - - - - - + - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + - - - - + + + - - - - - - + API to handle XML Pointers @@ -3443,23 +3446,23 @@ - - - + + - + + - + @@ -3748,6 +3751,10 @@ + + Macro to do a casting from an object pointer to a function pointer without encountering a warning from gcc + + The namespace for the XML Catalogs elements. @@ -8240,7 +8247,7 @@ actually an xmlCharEncoding'/> - Free up all the memory associated with memorys + Free up all the memory allocated by the library for its own use. This should not be called by user level code. @@ -8650,13 +8657,20 @@ actually an xmlCharEncoding'/> + + Check if the @name exists in the dictionnary @dict. + + + + + Free the hash @dict and its contents. The userdata is deallocated with @f if provided. - Add the @name to the hash @dict if not present. + Add the @name to the dictionnary @dict if not present. @@ -12655,6 +12669,12 @@ actually an xmlCharEncoding'/> + + LIBXML_SCHEMAS_ENABLED + Replaces 0xd, 0x9 and 0xa with a space. + + + Search a Ns registered under a given name space for a document. recurse on the parents until it finds the defined namespace or return NULL otherwise. @nameSpace can be NULL, this is a search for the default namespace. We don't allow to cross entities boundaries. If you don't declare the namespace within those you will be in troubles !!! A warning is generated to cover this case. diff --git a/doc/libxml2-refs.xml b/doc/libxml2-refs.xml index 5be0c13d..04d579ee 100644 --- a/doc/libxml2-refs.xml +++ b/doc/libxml2-refs.xml @@ -136,6 +136,7 @@ + @@ -1735,6 +1736,7 @@ + @@ -2537,6 +2539,7 @@ + @@ -3392,6 +3395,7 @@ + @@ -5027,6 +5031,7 @@ + @@ -5829,6 +5834,7 @@ + @@ -6543,6 +6549,7 @@ + @@ -6781,6 +6788,7 @@ + @@ -7470,6 +7478,7 @@ + @@ -7595,6 +7604,7 @@ + @@ -8387,6 +8397,7 @@ + @@ -10049,6 +10060,7 @@ + @@ -10204,6 +10216,7 @@ + @@ -12433,6 +12446,7 @@ + @@ -16058,6 +16072,9 @@ + + + @@ -18369,6 +18386,9 @@ + + + @@ -18407,6 +18427,7 @@ + @@ -19805,6 +19826,7 @@ + @@ -20286,6 +20308,9 @@ + + + @@ -20583,6 +20608,7 @@ + @@ -21182,6 +21208,9 @@ + + + @@ -22501,6 +22530,7 @@ + @@ -22537,6 +22567,7 @@ + @@ -22995,9 +23026,6 @@ - - - @@ -23970,6 +23998,7 @@ + @@ -24916,6 +24945,7 @@ + @@ -25304,6 +25334,7 @@ + @@ -27581,6 +27612,7 @@ + @@ -27782,6 +27814,7 @@ + diff --git a/python/libxml2class.txt b/python/libxml2class.txt index 06a8f283..527ae94f 100644 --- a/python/libxml2class.txt +++ b/python/libxml2class.txt @@ -229,6 +229,7 @@ schemaNewParserCtxt() schemaCleanupTypes() schemaCollapseString() schemaInitTypes() +schemaWhiteSpaceReplace() # functions from module xmlstring UTF8Charcmp() diff --git a/test/valid/REC-xml-19980210.xml b/test/valid/REC-xml-19980210.xml index 4e93fb38..f89606bd 100644 --- a/test/valid/REC-xml-19980210.xml +++ b/test/valid/REC-xml-19980210.xml @@ -744,7 +744,7 @@ name characters. | CombiningChar | Extender -Name +Name (Letter | '_' | ':') (NameChar)* Names diff --git a/testapi.c b/testapi.c index 1f176809..c0f8025e 100644 --- a/testapi.c +++ b/testapi.c @@ -8045,6 +8045,52 @@ test_xmlDictCreateSub(void) { } +static int +test_xmlDictExists(void) { + int test_ret = 0; + + int mem_base; + const xmlChar * ret_val; + xmlDictPtr dict; /* the dictionnary */ + int n_dict; + xmlChar * name; /* the name of the userdata */ + int n_name; + int len; /* the length of the name, if -1 it is recomputed */ + int n_len; + + for (n_dict = 0;n_dict < gen_nb_xmlDictPtr;n_dict++) { + for (n_name = 0;n_name < gen_nb_const_xmlChar_ptr;n_name++) { + for (n_len = 0;n_len < gen_nb_int;n_len++) { + mem_base = xmlMemBlocks(); + dict = gen_xmlDictPtr(n_dict, 0); + name = gen_const_xmlChar_ptr(n_name, 1); + len = gen_int(n_len, 2); + + ret_val = xmlDictExists(dict, (const xmlChar *)name, len); + desret_const_xmlChar_ptr(ret_val); + call_tests++; + des_xmlDictPtr(n_dict, dict, 0); + des_const_xmlChar_ptr(n_name, (const xmlChar *)name, 1); + des_int(n_len, len, 2); + xmlResetLastError(); + if (mem_base != xmlMemBlocks()) { + printf("Leak of %d blocks found in xmlDictExists", + xmlMemBlocks() - mem_base); + test_ret++; + printf(" %d", n_dict); + printf(" %d", n_name); + printf(" %d", n_len); + printf("\n"); + } + } + } + } + function_tests++; + + return(test_ret); +} + + static int test_xmlDictLookup(void) { int test_ret = 0; @@ -8244,9 +8290,10 @@ static int test_dict(void) { int test_ret = 0; - if (quiet == 0) printf("Testing dict : 7 of 8 functions ...\n"); + if (quiet == 0) printf("Testing dict : 8 of 9 functions ...\n"); test_ret += test_xmlDictCreate(); test_ret += test_xmlDictCreateSub(); + test_ret += test_xmlDictExists(); test_ret += test_xmlDictLookup(); test_ret += test_xmlDictOwns(); test_ret += test_xmlDictQLookup(); @@ -32686,11 +32733,45 @@ test_xmlSchemaValidatePredefinedType(void) { return(test_ret); } + +static int +test_xmlSchemaWhiteSpaceReplace(void) { + int test_ret = 0; + +#ifdef LIBXML_SCHEMAS_ENABLED + int mem_base; + xmlChar * ret_val; + xmlChar * value; /* a value */ + int n_value; + + for (n_value = 0;n_value < gen_nb_const_xmlChar_ptr;n_value++) { + mem_base = xmlMemBlocks(); + value = gen_const_xmlChar_ptr(n_value, 0); + + ret_val = xmlSchemaWhiteSpaceReplace((const xmlChar *)value); + desret_xmlChar_ptr(ret_val); + call_tests++; + des_const_xmlChar_ptr(n_value, (const xmlChar *)value, 0); + xmlResetLastError(); + if (mem_base != xmlMemBlocks()) { + printf("Leak of %d blocks found in xmlSchemaWhiteSpaceReplace", + xmlMemBlocks() - mem_base); + test_ret++; + printf(" %d", n_value); + printf("\n"); + } + } + function_tests++; +#endif + + return(test_ret); +} + static int test_xmlschemastypes(void) { int test_ret = 0; - if (quiet == 0) printf("Testing xmlschemastypes : 16 of 19 functions ...\n"); + if (quiet == 0) printf("Testing xmlschemastypes : 17 of 20 functions ...\n"); test_ret += test_xmlSchemaCheckFacet(); test_ret += test_xmlSchemaCleanupTypes(); test_ret += test_xmlSchemaCollapseString(); @@ -32708,6 +32789,7 @@ test_xmlschemastypes(void) { test_ret += test_xmlSchemaValidateLengthFacet(); test_ret += test_xmlSchemaValidateListSimpleTypeFacet(); test_ret += test_xmlSchemaValidatePredefinedType(); + test_ret += test_xmlSchemaWhiteSpaceReplace(); if (test_ret != 0) printf("Module xmlschemastypes: %d errors\n", test_ret); diff --git a/valid.c b/valid.c index 9fafbbe3..28111a55 100644 --- a/valid.c +++ b/valid.c @@ -2639,7 +2639,7 @@ xmlRemoveID(xmlDocPtr doc, xmlAttrPtr attr) { xmlFree(ID); return(-1); } - xmlHashUpdateEntry(table, ID, NULL, (xmlHashDeallocator) xmlFreeID); + xmlHashRemoveEntry(table, ID, (xmlHashDeallocator) xmlFreeID); xmlFree(ID); return(0); } diff --git a/xmlmemory.c b/xmlmemory.c index 69de28d7..d547e2ce 100644 --- a/xmlmemory.c +++ b/xmlmemory.c @@ -863,7 +863,8 @@ xmlInitMemory(void) /** * xmlCleanupMemory: * - * Free up all the memory associated with memorys + * Free up all the memory allocated by the library for its own + * use. This should not be called by user level code. */ void xmlCleanupMemory(void) {