From e1bcffea180d6cc0651757bb64284a763e0e2239 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Thu, 13 May 2021 15:35:21 +0200 Subject: Release of libxml2-2.9.11 Prompted by CVE-2021-3541, but this includes an awful lot of serious bug fixes by Nick and others. - configure.ac: bumped to new release - doc/* updated and regenerated --- configure.ac | 2 +- doc/APIchunk1.html | 4 +- doc/APIchunk10.html | 1 + doc/APIchunk11.html | 8 +- doc/APIchunk12.html | 13 +- doc/APIchunk13.html | 6 + doc/APIchunk14.html | 5 + doc/APIchunk15.html | 5 +- doc/APIchunk16.html | 1 - doc/APIchunk17.html | 63 +------ doc/APIchunk19.html | 3 +- doc/APIchunk2.html | 1 + doc/APIchunk20.html | 3 +- doc/APIchunk21.html | 3 +- doc/APIchunk22.html | 11 +- doc/APIchunk23.html | 4 +- doc/APIchunk24.html | 7 +- doc/APIchunk25.html | 3 +- doc/APIchunk28.html | 5 +- doc/APIchunk29.html | 1 + doc/APIchunk3.html | 1 - doc/APIchunk4.html | 1 + doc/APIchunk6.html | 1 + doc/APIchunk7.html | 1 + doc/APIchunk8.html | 1 + doc/APIfiles.html | 3 + doc/APIsymbols.html | 3 + doc/devhelp/general.html | 2 +- doc/devhelp/libxml2-HTMLtree.html | 8 +- doc/devhelp/libxml2-SAX2.html | 4 +- doc/devhelp/libxml2-debugXML.html | 4 +- doc/devhelp/libxml2-encoding.html | 4 +- doc/devhelp/libxml2-nanoftp.html | 22 +-- doc/devhelp/libxml2-nanohttp.html | 8 +- doc/devhelp/libxml2-parser.html | 17 +- doc/devhelp/libxml2-parserInternals.html | 6 +- doc/devhelp/libxml2-relaxng.html | 6 +- doc/devhelp/libxml2-tree.html | 14 +- doc/devhelp/libxml2-xinclude.html | 2 +- doc/devhelp/libxml2-xmlIO.html | 5 + doc/devhelp/libxml2-xmlerror.html | 2 +- doc/devhelp/libxml2-xmlexports.html | 21 ++- doc/devhelp/libxml2-xmlreader.html | 2 +- doc/devhelp/libxml2-xmlregexp.html | 4 +- doc/devhelp/libxml2-xmlsave.html | 6 +- doc/devhelp/libxml2-xmlschemas.html | 6 +- doc/devhelp/libxml2-xmlversion.html | 6 +- doc/devhelp/libxml2-xpath.html | 2 - doc/devhelp/libxml2.devhelp | 5 +- doc/examples/index.html | 2 +- doc/html/book1.html | 2 +- doc/html/index.html | 2 +- doc/html/libxml-HTMLtree.html | 8 +- doc/html/libxml-SAX2.html | 4 +- doc/html/libxml-debugXML.html | 4 +- doc/html/libxml-encoding.html | 4 +- doc/html/libxml-lib.html | 2 +- doc/html/libxml-nanoftp.html | 22 +-- doc/html/libxml-nanohttp.html | 8 +- doc/html/libxml-parser.html | 14 +- doc/html/libxml-parserInternals.html | 6 +- doc/html/libxml-relaxng.html | 6 +- doc/html/libxml-tree.html | 14 +- doc/html/libxml-xinclude.html | 2 +- doc/html/libxml-xmlIO.html | 5 +- doc/html/libxml-xmlerror.html | 2 +- doc/html/libxml-xmlexports.html | 11 +- doc/html/libxml-xmlreader.html | 2 +- doc/html/libxml-xmlregexp.html | 4 +- doc/html/libxml-xmlsave.html | 6 +- doc/html/libxml-xmlschemas.html | 6 +- doc/html/libxml-xmlversion.html | 2 +- doc/html/libxml-xpath.html | 2 - doc/libxml2-api.xml | 137 +++++++------- doc/libxml2-refs.xml | 163 +++++++---------- doc/libxml2.xsa | 177 ++++++++++++------ doc/news.html | 300 ++++++++++++++++++++++++++++--- doc/xml.html | 255 ++++++++++++++++++++++++++ testapi.c | 56 ++++-- 79 files changed, 1061 insertions(+), 483 deletions(-) diff --git a/configure.ac b/configure.ac index a4c675bb..ab76a459 100644 --- a/configure.ac +++ b/configure.ac @@ -3,7 +3,7 @@ AC_PREREQ([2.63]) m4_define([MAJOR_VERSION], 2) m4_define([MINOR_VERSION], 9) -m4_define([MICRO_VERSION], 10) +m4_define([MICRO_VERSION], 11) AC_INIT([libxml2],[MAJOR_VERSION.MINOR_VERSION.MICRO_VERSION]) AC_CONFIG_SRCDIR([entities.c]) diff --git a/doc/APIchunk1.html b/doc/APIchunk1.html index 393cd184..e4c4c0ee 100644 --- a/doc/APIchunk1.html +++ b/doc/APIchunk1.html @@ -50,6 +50,7 @@ A:link, A:visited, A:active { text-decoration: underline } xmlNewChild
xmlNewDocNode
xmlNewDocNodeEatName
+xmlNewDocProp
xmlNodeSetContent
xmlNodeSetContentLen
xmlParseAttValue
@@ -85,8 +86,7 @@ A:link, A:visited, A:active { text-decoration: underline }
CVS
LIBXML_VERSION_EXTRA
CWD
xmlNanoFTPCwd
Cache
_xmlXPathContext
-
Call
htmlInitAutoClose
-xmlInitParser
+
Call
xmlInitParser
xmlXPathOrderDocElems
Callback
externalSubset
externalSubsetSAXFunc
diff --git a/doc/APIchunk10.html b/doc/APIchunk10.html index b612643a..23e1f442 100644 --- a/doc/APIchunk10.html +++ b/doc/APIchunk10.html @@ -388,6 +388,7 @@ A:link, A:visited, A:active { text-decoration: underline } htmlIsAutoClosed
xmlCatalogAdd
xmlNewChild
+xmlNewDocProp
xmlNodeSetContent
xmlNodeSetContentLen
xmlParseURIRaw
diff --git a/doc/APIchunk11.html b/doc/APIchunk11.html index c28458d9..9780c17f 100644 --- a/doc/APIchunk11.html +++ b/doc/APIchunk11.html @@ -51,7 +51,6 @@ A:link, A:visited, A:active { text-decoration: underline } xmlSetEntityReferenceFunc
bad
XML_MAX_LOOKUP_LIMIT
badly
xmlParseExternalID
-
bahaviour
xmlTextReaderNormalization
balanced
xmlParseBalancedChunkMemory
xmlParseBalancedChunkMemoryRecover
xmlParseInNodeContext
@@ -94,8 +93,7 @@ A:link, A:visited, A:active { text-decoration: underline }
basis
xmlSubstituteEntitiesDefault
bear
xmlParseAttributeType
becomes
xmlAddAttributeDecl
-
before
htmlInitAutoClose
-xmlBuildRelativeURI
+
before
xmlBuildRelativeURI
xmlCatalogAdd
xmlCleanupParser
xmlCleanupThreads
@@ -148,6 +146,7 @@ A:link, A:visited, A:active { text-decoration: underline } xmlNodeGetSpacePreserve
xmlNodeSetSpacePreserve
xmlSAX2ResolveEntity
+xmlTextReaderNormalization
xmlTextReaderSetParserProp
xmlUTF8Strsize
below
_xmlParserCtxt
@@ -180,9 +179,6 @@ A:link, A:visited, A:active { text-decoration: underline }
bits
xmlGetLineNo
blanks
xmlKeepBlanksDefault
xmlSkipBlankChars
-
bloc
xmlParseBalancedChunkMemory
-xmlParseBalancedChunkMemoryRecover
-xmlParseExternalEntity
blockDefault
XML_SCHEMAS_BLOCK_DEFAULT_EXTENSION
XML_SCHEMAS_BLOCK_DEFAULT_RESTRICTION
XML_SCHEMAS_BLOCK_DEFAULT_SUBSTITUTION
diff --git a/doc/APIchunk12.html b/doc/APIchunk12.html index 77330dd3..054818c0 100644 --- a/doc/APIchunk12.html +++ b/doc/APIchunk12.html @@ -46,7 +46,9 @@ A:link, A:visited, A:active { text-decoration: underline }
caching:
xmlXPathContextSetCache
calculated
xmlStrncatNew
calculates
xmlUTF8Size
-
calling
_xmlXPathContext
+
calling
XMLCALL
+XMLCDECL
+_xmlXPathContext
xmlBuildRelativeURI
xmlC14NDocDumpMemory
xmlCheckFilename
@@ -320,8 +322,7 @@ A:link, A:visited, A:active { text-decoration: underline } xmlXPathCeilingFunction
xmlXPathFloorFunction
xmlXPathRoundFunction
-
closing
htmlInitAutoClose
-xmlNanoFTPFreeCtxt
+
closing
xmlNanoFTPFreeCtxt
xmlParseElementChildrenContentDecl
xmlParseStartTag
codes
xmlCheckLanguageID
@@ -438,6 +439,7 @@ A:link, A:visited, A:active { text-decoration: underline }
compiled-in
xmlCleanupInputCallbacks
xmlCleanupOutputCallbacks
xmlPopInputCallbacks
+xmlPopOutputCallbacks
xmlRegisterDefaultInputCallbacks
xmlRegisterDefaultOutputCallbacks
compiling
xmlRelaxNGNewDocParserCtxt
@@ -681,8 +683,7 @@ A:link, A:visited, A:active { text-decoration: underline } xmlXPathNodeSetContains
xmlXPathSubstringFunction
xmlXPtrNewContext
-
content:
xmlParseContent
-xmlXPathEqualValues
+
content:
xmlXPathEqualValues
xmlXPathNotEqualValues
contentType
xmlNanoHTTPFetch
xmlNanoHTTPMethod
@@ -722,6 +723,8 @@ A:link, A:visited, A:active { text-decoration: underline } xmlNanoFTPConnectTo
xmlSAX2ResolveEntity
conveniently
xmlCurrentChar
+
convention
XMLCALL
+XMLCDECL
conversion
_uconv_t
_xmlXPathType
xmlCharEncOutFunc
diff --git a/doc/APIchunk13.html b/doc/APIchunk13.html index a01afa83..ae839a1f 100644 --- a/doc/APIchunk13.html +++ b/doc/APIchunk13.html @@ -154,6 +154,11 @@ A:link, A:visited, A:active { text-decoration: underline } xmlTextReaderStandalone
xmlValidCtxtNormalizeAttributeValue
xmlValidNormalizeAttributeValue
+
declares
XMLCALL
+XMLCDECL
+XMLPUBFUN
+XMLPUBLIC
+XMLPUBVAR
declaring
xmlGetID
decode
xmlDecodeEntities
def
xmlParseAttributeListDecl
@@ -535,6 +540,7 @@ A:link, A:visited, A:active { text-decoration: underline } xmlLastElementChild
xmlNewDocNode
xmlNewDocNodeEatName
+xmlNewDocProp
xmlNextElementSibling
xmlParseStartTag
xmlPreviousElementSibling
diff --git a/doc/APIchunk14.html b/doc/APIchunk14.html index 235b553f..2889dcfd 100644 --- a/doc/APIchunk14.html +++ b/doc/APIchunk14.html @@ -271,6 +271,7 @@ A:link, A:visited, A:active { text-decoration: underline }
escaped
xmlNewChild
xmlNewDocNode
xmlNewDocNodeEatName
+xmlNewDocProp
xmlNewTextChild
xmlNodeSetContent
xmlNodeSetContentLen
@@ -392,6 +393,10 @@ A:link, A:visited, A:active { text-decoration: underline } xmlStreamPushNode
explicitly
xmlSAXDefaultVersion
explored
xmlXPathAxisFunc
+
exportable
XMLPUBFUN
+XMLPUBVAR
+
exported
XMLCALL
+XMLCDECL
exposing
xmlTextReaderRead
express
LIBXML2_NEW_BUFFER
expressing
xmlPathToURI
diff --git a/doc/APIchunk15.html b/doc/APIchunk15.html index 744bde8e..87f54c02 100644 --- a/doc/APIchunk15.html +++ b/doc/APIchunk15.html @@ -109,7 +109,6 @@ A:link, A:visited, A:active { text-decoration: underline } fatalErrorSAXFunc
xmlSchemaIsValid
fashion
xmlNewRMutex
-
fast
htmlInitAutoClose
faster
htmlNodeStatus
xmlStrEqual
fatal
fatalErrorSAXFunc
@@ -386,7 +385,9 @@ A:link, A:visited, A:active { text-decoration: underline } xmlOutputMatchCallback
xmlXPathNodeSetGetLength
xmlXPathNodeSetItem
-
functions
htmlCtxtReadIO
+
functions
XMLCALL
+XMLCDECL
+htmlCtxtReadIO
htmlReadIO
xmlC14NDocDumpMemory
xmlCtxtReadIO
diff --git a/doc/APIchunk16.html b/doc/APIchunk16.html index 0fb9d81d..9afdf239 100644 --- a/doc/APIchunk16.html +++ b/doc/APIchunk16.html @@ -324,7 +324,6 @@ A:link, A:visited, A:active { text-decoration: underline } htmlReadMemory
htmlStartClose
htmlAutoCloseTag
htmlIsAutoClosed
-
htmlStartCloseIndex
htmlInitAutoClose
http:
XINCLUDE_NS
XINCLUDE_OLD_NS
getSystemId
diff --git a/doc/APIchunk17.html b/doc/APIchunk17.html index d2dd0696..ab3504f3 100644 --- a/doc/APIchunk17.html +++ b/doc/APIchunk17.html @@ -126,15 +126,6 @@ A:link, A:visited, A:active { text-decoration: underline } xmlSAXParseMemory
xmlSAXParseMemoryWithData
xmlSAXUserParseMemory
-
incase
xmlNanoFTPClose
-xmlNanoFTPCloseConnection
-xmlNanoFTPCwd
-xmlNanoFTPDele
-xmlNanoFTPGet
-xmlNanoFTPGetConnection
-xmlNanoFTPList
-xmlNanoHTTPFetch
-xmlNanoHTTPSave
incl
_xmlSchemaType
include
XINCLUDE_NODE
xmlC14NDocDumpMemory
@@ -156,6 +147,7 @@ A:link, A:visited, A:active { text-decoration: underline } xmlCleanupInputCallbacks
xmlCleanupOutputCallbacks
xmlPopInputCallbacks
+xmlPopOutputCallbacks
xmlXIncludeProcessFlags
xmlXIncludeProcessFlagsData
xmlXIncludeProcessTreeFlags
@@ -283,59 +275,6 @@ A:link, A:visited, A:active { text-decoration: underline } xmlParserFindNodeInfo
xmlParserFindNodeInfoIndex
xmlReallocLoc
-
information
LIBXML_VERSION_EXTRA
-_xmlError
-xmlDebugDumpAttr
-xmlDebugDumpAttrList
-xmlDebugDumpDTD
-xmlDebugDumpDocument
-xmlDebugDumpDocumentHead
-xmlDebugDumpEntities
-xmlDebugDumpNode
-xmlDebugDumpNodeList
-xmlDebugDumpOneNode
-xmlNanoFTPUpdateURL
-xmlNanoHTTPFetch
-xmlNanoHTTPMethod
-xmlNanoHTTPMethodRedir
-xmlNanoHTTPOpen
-xmlNanoHTTPOpenRedir
-xmlNewTextReader
-xmlRelaxNGGetParserErrors
-xmlSchemaGetParserErrors
-xmlSchemaValidateSetFilename
-xmlSchemaValidateSetLocator
-xmlSchemaValidateStream
-xmlSchemaValidityLocatorFunc
-xmlTextReaderByteConsumed
-xmlXPathOrderDocElems
-
informations
_xmlAttr
-_xmlDoc
-_xmlNode
-_xmlParserCtxt
-endElementNsSAX2Func
-startElementNsSAX2Func
-xmlDebugDumpString
-xmlErrMemory
-xmlNanoFTPCleanup
-xmlNanoFTPInit
-xmlNanoFTPProxy
-xmlNanoFTPScanProxy
-xmlNanoHTTPInit
-xmlNanoHTTPScanProxy
-xmlParserPrintFileInfo
-xmlRegExecErrInfo
-xmlRegExecNextValues
-xmlRelaxNGGetValidErrors
-xmlRelaxNGSetValidErrors
-xmlRelaxParserSetFlag
-xmlSAX2EndElementNs
-xmlSAX2StartElementNs
-xmlSchemaGetValidErrors
-xmlSchemaSetValidErrors
-xmlSchemaValidityLocatorFunc
-xmlShellDir
-xmlXIncludeProcessNode
informative
_xmlError
infos
_xmlParserCtxt
inherited
_xmlParserCtxt
diff --git a/doc/APIchunk19.html b/doc/APIchunk19.html index c50c345f..b948d387 100644 --- a/doc/APIchunk19.html +++ b/doc/APIchunk19.html @@ -319,8 +319,7 @@ A:link, A:visited, A:active { text-decoration: underline }
multiple
xmlCurrentChar
xmlStringCurrentChar
multiply
xmlXPathMultValues
-
multithreaded
htmlInitAutoClose
-xmlCleanupParser
+
multithreaded
xmlCleanupParser
xmlCleanupThreads
xmlInitParser
mutex
xmlDictCleanup
diff --git a/doc/APIchunk2.html b/doc/APIchunk2.html index d5d363b1..449e0cb0 100644 --- a/doc/APIchunk2.html +++ b/doc/APIchunk2.html @@ -216,6 +216,7 @@ A:link, A:visited, A:active { text-decoration: underline } xmlNodeListGetString
xmlStringGetNodeList
xmlStringLenGetNodeList
+
EOF
xmlParseContent
ETag
htmlParseElement
xmlParseElement
xmlParseEndTag
diff --git a/doc/APIchunk20.html b/doc/APIchunk20.html index f812bbc9..0a309233 100644 --- a/doc/APIchunk20.html +++ b/doc/APIchunk20.html @@ -41,7 +41,6 @@ A:link, A:visited, A:active { text-decoration: underline }
names
_xmlDoc
_xmlParserCtxt
_xmlSchema
-htmlInitAutoClose
xmlGetFeaturesList
xmlHashAddEntry
xmlHashScan3
@@ -156,6 +155,7 @@ A:link, A:visited, A:active { text-decoration: underline }
nice
xmlBuildRelativeURI
nillable
XML_SCHEMAS_ELEM_NILLABLE
xmlExpIsNillable
+
no-op
htmlInitAutoClose
nod
xmlEntityReferenceFunc
node-
_xmlDOMWrapCtxt
xmlDOMWrapRemoveNode
@@ -258,6 +258,7 @@ A:link, A:visited, A:active { text-decoration: underline } XML_CAST_FPTR
_xmlSchema
_xmlSchemaElement
+htmlInitAutoClose
xmlDecodeEntities
xmlParserHandleReference
xmlScanName
diff --git a/doc/APIchunk21.html b/doc/APIchunk21.html index 7f8efe49..6f376c88 100644 --- a/doc/APIchunk21.html +++ b/doc/APIchunk21.html @@ -128,8 +128,7 @@ A:link, A:visited, A:active { text-decoration: underline } xmlXPathNormalizeFunction
xmlXPathStringFunction
xmlXPathStringLengthFunction
-
once
htmlInitAutoClose
-xmlAutomataNewOnceTrans
+
once
xmlAutomataNewOnceTrans
xmlAutomataNewOnceTrans2
xmlCleanupThreads
xmlEncodeEntities
diff --git a/doc/APIchunk22.html b/doc/APIchunk22.html index 9f690089..59f5141f 100644 --- a/doc/APIchunk22.html +++ b/doc/APIchunk22.html @@ -166,6 +166,7 @@ A:link, A:visited, A:active { text-decoration: underline }
piece
xmlNewChild
xmlNewDocNode
xmlNewDocNodeEatName
+xmlNewDocProp
xmlNodeSetContent
xmlNodeSetContentLen
pieces
xmlParseURIRaw
@@ -417,8 +418,7 @@ A:link, A:visited, A:active { text-decoration: underline } xmlStringLenDecodeEntities
xmlValidCtxtNormalizeAttributeValue
xmlValidNormalizeAttributeValue
-
processed
_xmlParserCtxt
-startDocument
+
processed
startDocument
startDocumentSAXFunc
startElement
startElementSAXFunc
@@ -443,14 +443,15 @@ A:link, A:visited, A:active { text-decoration: underline }
produce
xmlCharEncodingOutputFunc
xmlStringGetNodeList
xmlStringLenGetNodeList
-
produced
xmlCharEncodingOutputFunc
+
produced
UTF8Toisolat1
+isolat1ToUTF8
+xmlCharEncodingOutputFunc
xmlCurrentChar
producing
xmlCheckUTF8
production:
xmlCheckLanguageID
productions
xmlCheckLanguageID
program
xmlXPtrNewContext
-
programs
htmlInitAutoClose
-xmlInitParser
+
programs
xmlInitParser
progressed
xmlTextReaderGetRemainder
progresses
xmlRegNewExecCtxt
progressive
_xmlParserCtxt
diff --git a/doc/APIchunk23.html b/doc/APIchunk23.html index a72cbfe2..7bade6ac 100644 --- a/doc/APIchunk23.html +++ b/doc/APIchunk23.html @@ -228,8 +228,7 @@ A:link, A:visited, A:active { text-decoration: underline } xmlNanoHTTPRedir
redirection
xmlCheckHTTPInput
xmlNanoHTTPRedir
-
reentrant
htmlInitAutoClose
-xmlEncodeEntitiesReentrant
+
reentrant
xmlEncodeEntitiesReentrant
xmlEncodeSpecialChars
xmlFreeRMutex
xmlInitParser
@@ -272,6 +271,7 @@ A:link, A:visited, A:active { text-decoration: underline } xmlGetCharEncodingHandler
xmlGetLastError
xmlPopInputCallbacks
+xmlPopOutputCallbacks
xmlRegisterInputCallbacks
xmlRegisterOutputCallbacks
xmlResetLastError
diff --git a/doc/APIchunk24.html b/doc/APIchunk24.html index c545f17e..99626b47 100644 --- a/doc/APIchunk24.html +++ b/doc/APIchunk24.html @@ -72,7 +72,6 @@ A:link, A:visited, A:active { text-decoration: underline } xmlGcMemGet
xmlMemGet
xmlNanoHTTPFetch
-xmlSaveTree
xmlShell
xmlShellSave
saved
_htmlElemDesc
@@ -215,6 +214,7 @@ A:link, A:visited, A:active { text-decoration: underline } xmlParseAttValue
xmlParseBalancedChunkMemory
xmlParseBalancedChunkMemoryRecover
+xmlParseContent
xmlParseInNodeContext
xmlParserAddNodeInfo
xmlParserFindNodeInfoIndex
@@ -539,6 +539,7 @@ A:link, A:visited, A:active { text-decoration: underline } xmlNewChild
xmlNewDocNode
xmlNewDocNodeEatName
+xmlNewDocProp
xmlNodeAddContent
xmlNodeAddContentLen
xmlNodeSetContent
@@ -942,6 +943,7 @@ A:link, A:visited, A:active { text-decoration: underline } xmlNewChild
xmlNewDocNode
xmlNewDocNodeEatName
+xmlNewDocProp
xmlNodeAddContent
xmlNodeAddContentLen
xmlNodeSetContent
@@ -958,7 +960,8 @@ A:link, A:visited, A:active { text-decoration: underline }
switch
xmlKeepBlanksDefault
xmlParseReference
xmlPushInput
-
symbol
xmlModuleSymbol
+
symbol
XMLPUBLIC
+xmlModuleSymbol
synchronizing
xmlNewMutex
xmlNewRMutex
syntax
xmlParseAttributeType
diff --git a/doc/APIchunk25.html b/doc/APIchunk25.html index eaa24deb..c37fe8fc 100644 --- a/doc/APIchunk25.html +++ b/doc/APIchunk25.html @@ -56,7 +56,6 @@ A:link, A:visited, A:active { text-decoration: underline }
tags
htmlAutoCloseTag
htmlGetMetaEncoding
htmlHandleOmittedElem
-htmlInitAutoClose
htmlIsAutoClosed
htmlSetMetaEncoding
take
xmlLockLibrary
@@ -250,9 +249,9 @@ A:link, A:visited, A:active { text-decoration: underline } xmlNamespaceParseNSDef
xmlNamespaceParseQName
xmlPopInputCallbacks
+xmlPopOutputCallbacks
xmlPushInput
xmlReconciliateNs
-xmlSaveTree
xmlSetTreeDoc
total
_xmlOutputBuffer
xmlGetFeaturesList
diff --git a/doc/APIchunk28.html b/doc/APIchunk28.html index e6e5958a..f2927f8c 100644 --- a/doc/APIchunk28.html +++ b/doc/APIchunk28.html @@ -165,6 +165,7 @@ A:link, A:visited, A:active { text-decoration: underline } xmlNewChild
xmlNewDocNode
xmlNewDocNodeEatName
+xmlNewDocProp
xmlNodeSetContent
xmlNodeSetContentLen
xmlEncodeSpecialChars
xmlNodeSetContent
@@ -226,8 +227,7 @@ A:link, A:visited, A:active { text-decoration: underline } xmlNodeDumpOutput
xmlSaveFormatFile
xmlSaveFormatFileEnc
-
xmlInitParser
htmlInitAutoClose
-xmlCleanupParser
+
xmlInitParser
xmlCleanupParser
xmlInitThreads
xmlInitThreads
xmlInitializeCatalog
xmlCatalogAdd
xmlInitializeGlobalState
xmlInitializeGlobalState
@@ -277,6 +277,7 @@ A:link, A:visited, A:active { text-decoration: underline } xmlNewDocNodeEatName
xmlNewMutex
xmlNewMutex
xmlNewNode
xmlNewNodeEatName
+
xmlNewProp
xmlNewDocProp
xmlNewTextChild
xmlNewChild
xmlNewTextChild
xmlNewTextWriter
xmlNewTextWriter
diff --git a/doc/APIchunk29.html b/doc/APIchunk29.html index b4b7fc0b..99c66dac 100644 --- a/doc/APIchunk29.html +++ b/doc/APIchunk29.html @@ -63,6 +63,7 @@ A:link, A:visited, A:active { text-decoration: underline } xmlDOMWrapCloneNode
xmlNewDocNode
xmlNewDocNodeEatName
+xmlNewDocProp
xmlNewTextChild
xmlSchemaGetBuiltInType
xmlSearchNs
diff --git a/doc/APIchunk3.html b/doc/APIchunk3.html index 77ee4523..b8a791ba 100644 --- a/doc/APIchunk3.html +++ b/doc/APIchunk3.html @@ -284,7 +284,6 @@ A:link, A:visited, A:active { text-decoration: underline }
Initialization
xmlInitParser
Initialize
docbDefaultSAXHandlerInit
htmlDefaultSAXHandlerInit
-htmlInitAutoClose
initdocbDefaultSAXHandler
inithtmlDefaultSAXHandler
initxmlDefaultSAXHandler
diff --git a/doc/APIchunk4.html b/doc/APIchunk4.html index 30a68460..f7995fdf 100644 --- a/doc/APIchunk4.html +++ b/doc/APIchunk4.html @@ -217,6 +217,7 @@ A:link, A:visited, A:active { text-decoration: underline } xmlNewChild
xmlNewDocNode
xmlNewDocNodeEatName
+xmlNewDocProp
xmlNewTextChild
xmlNewTextWriter
xmlNewTextWriterPushParser
diff --git a/doc/APIchunk6.html b/doc/APIchunk6.html index be524d96..39dd6118 100644 --- a/doc/APIchunk6.html +++ b/doc/APIchunk6.html @@ -211,6 +211,7 @@ A:link, A:visited, A:active { text-decoration: underline } xmlListRemoveFirst
xmlListRemoveLast
xmlParserHandleReference
+xmlPopOutputCallbacks
xmlRemoveID
xmlRemoveRef
xmlUnsetNsProp
diff --git a/doc/APIchunk7.html b/doc/APIchunk7.html index 24329751..d9a1d493 100644 --- a/doc/APIchunk7.html +++ b/doc/APIchunk7.html @@ -273,6 +273,7 @@ A:link, A:visited, A:active { text-decoration: underline } xmlTextWriterStartElement
xmlTextWriterStartElementNS
xmlTextWriterStartPI
+
Stops
xmlParseContent
StringType
xmlParseAttributeType
Strings
xmlXPathStringLengthFunction
xmlXPathSubstringFunction
diff --git a/doc/APIchunk8.html b/doc/APIchunk8.html index 1038288c..03bccb84 100644 --- a/doc/APIchunk8.html +++ b/doc/APIchunk8.html @@ -246,6 +246,7 @@ A:link, A:visited, A:active { text-decoration: underline } xmlIsPubidChar
xmlNewDocNode
xmlNewDocNodeEatName
+xmlNewDocProp
xmlNewNodeEatName
xmlNewPI
xmlNewTextChild
diff --git a/doc/APIfiles.html b/doc/APIfiles.html index 35780565..6c58b2b4 100644 --- a/doc/APIfiles.html +++ b/doc/APIfiles.html @@ -796,6 +796,7 @@ A:link, A:visited, A:active { text-decoration: underline } xmlSetExternalEntityLoader
xmlSetFeature
xmlSetupParserForBuffer
+xmlStartTag
xmlStopParser
xmlSubstituteEntitiesDefault

Module parserInternals:

INPUT_CHUNK
@@ -1809,6 +1810,7 @@ A:link, A:visited, A:active { text-decoration: underline } xmlParserInputBufferPush
xmlParserInputBufferRead
xmlPopInputCallbacks
+xmlPopOutputCallbacks
xmlRegisterDefaultInputCallbacks
xmlRegisterDefaultOutputCallbacks
xmlRegisterHTTPPostCallbacks
@@ -2633,6 +2635,7 @@ A:link, A:visited, A:active { text-decoration: underline } XMLCALL
XMLCDECL
XMLPUBFUN
+XMLPUBLIC
XMLPUBVAR

Module xmlmemory:

DEBUG_MEMORY
xmlCleanupMemory
diff --git a/doc/APIsymbols.html b/doc/APIsymbols.html index 1af527ab..75f583e4 100644 --- a/doc/APIsymbols.html +++ b/doc/APIsymbols.html @@ -138,6 +138,7 @@ A:link, A:visited, A:active { text-decoration: underline } XMLCALL
XMLCDECL
XMLPUBFUN
+XMLPUBLIC
XMLPUBVAR
XML_ATTRIBUTE_CDATA
XML_ATTRIBUTE_DECL
@@ -2574,6 +2575,7 @@ A:link, A:visited, A:active { text-decoration: underline } xmlPedanticParserDefaultValue
xmlPopInput
xmlPopInputCallbacks
+xmlPopOutputCallbacks
xmlPreviousElementSibling
xmlPrintURI
xmlPushInput
@@ -2913,6 +2915,7 @@ A:link, A:visited, A:active { text-decoration: underline } xmlSplitQName2
xmlSplitQName3
xmlSprintfElementContent
+xmlStartTag
xmlStopParser
xmlStrEqual
xmlStrPrintf
diff --git a/doc/devhelp/general.html b/doc/devhelp/general.html index 90f0d394..1076c38e 100644 --- a/doc/devhelp/general.html +++ b/doc/devhelp/general.html @@ -33,6 +33,6 @@

libxml2 API Modules

-

DOCBparser - old DocBook SGML parser
HTMLparser - interface for an HTML 4.0 non-verifying parser
HTMLtree - specific APIs to process HTML tree, especially serialization
SAX - Old SAX version 1 handler, deprecated
SAX2 - SAX2 parser interface used to build the DOM tree
c14n - Provide Canonical XML and Exclusive XML Canonicalization
catalog - interfaces to the Catalog handling system
chvalid - Unicode character range checking
debugXML - Tree debugging APIs
dict - string dictionary
encoding - interface for the encoding conversion functions
entities - interface for the XML entities handling
globals - interface for all global variables of the library
hash - Chained hash tables
list - lists interfaces
nanoftp - minimal FTP implementation
nanohttp - minimal HTTP implementation
parser - the core parser module
parserInternals - internals routines and limits exported by the parser.
pattern - pattern expression handling
relaxng - implementation of the Relax-NG validation
schemasInternals - internal interfaces for XML Schemas
schematron - XML Schemastron implementation
threads - interfaces for thread handling
tree - interfaces for tree manipulation
uri - library of generic URI related routines
valid - The DTD validation
xinclude - implementation of XInclude
xlink - unfinished XLink detection module
xmlIO - interface for the I/O interfaces used by the parser
xmlautomata - API to build regexp automata
xmlerror - error handling
xmlexports - macros for marking symbols as exportable/importable.
xmlmemory - interface for the memory allocator
xmlmodule - dynamic module loading
xmlreader - the XMLReader implementation
xmlregexp - regular expressions handling
xmlsave - the XML document serializer
xmlschemas - incomplete XML Schemas structure implementation
xmlschemastypes - implementation of XML Schema Datatypes
xmlstring - set of routines to process strings
xmlunicode - Unicode character APIs
xmlversion - compile-time version informations
xmlwriter - text writing API for XML
xpath - XML Path Language implementation
xpathInternals - internal interfaces for XML Path Language implementation
xpointer - API to handle XML Pointers

+

DOCBparser - old DocBook SGML parser
HTMLparser - interface for an HTML 4.0 non-verifying parser
HTMLtree - specific APIs to process HTML tree, especially serialization
SAX - Old SAX version 1 handler, deprecated
SAX2 - SAX2 parser interface used to build the DOM tree
c14n - Provide Canonical XML and Exclusive XML Canonicalization
catalog - interfaces to the Catalog handling system
chvalid - Unicode character range checking
debugXML - Tree debugging APIs
dict - string dictionary
encoding - interface for the encoding conversion functions
entities - interface for the XML entities handling
globals - interface for all global variables of the library
hash - Chained hash tables
list - lists interfaces
nanoftp - minimal FTP implementation
nanohttp - minimal HTTP implementation
parser - the core parser module
parserInternals - internals routines and limits exported by the parser.
pattern - pattern expression handling
relaxng - implementation of the Relax-NG validation
schemasInternals - internal interfaces for XML Schemas
schematron - XML Schemastron implementation
threads - interfaces for thread handling
tree - interfaces for tree manipulation
uri - library of generic URI related routines
valid - The DTD validation
xinclude - implementation of XInclude
xlink - unfinished XLink detection module
xmlIO - interface for the I/O interfaces used by the parser
xmlautomata - API to build regexp automata
xmlerror - error handling
xmlexports - macros for marking symbols as exportable/importable.
xmlmemory - interface for the memory allocator
xmlmodule - dynamic module loading
xmlreader - the XMLReader implementation
xmlregexp - regular expressions handling
xmlsave - the XML document serializer
xmlschemas - incomplete XML Schemas structure implementation
xmlschemastypes - implementation of XML Schema Datatypes
xmlstring - set of routines to process strings
xmlunicode - Unicode character APIs
xmlversion - compile-time version information
xmlwriter - text writing API for XML
xpath - XML Path Language implementation
xpathInternals - internal interfaces for XML Path Language implementation
xpointer - API to handle XML Pointers

diff --git a/doc/devhelp/libxml2-HTMLtree.html b/doc/devhelp/libxml2-HTMLtree.html index f170340d..ec5d1132 100644 --- a/doc/devhelp/libxml2-HTMLtree.html +++ b/doc/devhelp/libxml2-HTMLtree.html @@ -96,11 +96,11 @@ void htmlDocContentDumpOutput (

htmlDocContentDumpFormatOutput ()

void	htmlDocContentDumpFormatOutput	(xmlOutputBufferPtr buf, 
xmlDocPtr cur,
const char * encoding,
int format)

Dump an HTML document.

-
buf:the HTML buffer output
cur:the document
encoding:the encoding string
format:should formatting spaces been added
+
buf:the HTML buffer output
cur:the document
encoding:the encoding string (unused)
format:should formatting spaces been added

htmlDocContentDumpOutput ()

void	htmlDocContentDumpOutput	(xmlOutputBufferPtr buf, 
xmlDocPtr cur,
const char * encoding)

Dump an HTML document. Formatting return/spaces are added.

-
buf:the HTML buffer output
cur:the document
encoding:the encoding string
+
buf:the HTML buffer output
cur:the document
encoding:the encoding string (unused)

htmlDocDump ()

int	htmlDocDump			(FILE * f, 
xmlDocPtr cur)

Dump an HTML document to an open FILE.

@@ -144,11 +144,11 @@ void htmlDocContentDumpOutput (

htmlNodeDumpFormatOutput ()

void	htmlNodeDumpFormatOutput	(xmlOutputBufferPtr buf, 
xmlDocPtr doc,
xmlNodePtr cur,
const char * encoding,
int format)

Dump an HTML node, recursive behaviour,children are printed too.

-
buf:the HTML buffer output
doc:the document
cur:the current node
encoding:the encoding string
format:should formatting spaces been added
+
buf:the HTML buffer output
doc:the document
cur:the current node
encoding:the encoding string (unused)
format:should formatting spaces been added

htmlNodeDumpOutput ()

void	htmlNodeDumpOutput		(xmlOutputBufferPtr buf, 
xmlDocPtr doc,
xmlNodePtr cur,
const char * encoding)

Dump an HTML node, recursive behaviour,children are printed too, and formatting returns/spaces are added.

-
buf:the HTML buffer output
doc:the document
cur:the current node
encoding:the encoding string
+
buf:the HTML buffer output
doc:the document
cur:the current node
encoding:the encoding string (unused)

htmlSaveFile ()

int	htmlSaveFile			(const char * filename, 
xmlDocPtr cur)

Dump an HTML document to a file. If @filename is "-" the stdout file is used.

diff --git a/doc/devhelp/libxml2-SAX2.html b/doc/devhelp/libxml2-SAX2.html index e80199ef..627e55e5 100644 --- a/doc/devhelp/libxml2-SAX2.html +++ b/doc/devhelp/libxml2-SAX2.html @@ -130,7 +130,7 @@ void xmlSAX2EntityDecl (void * ctx,
ctx:the user data (XML parser context)
name:The element name

xmlSAX2EndElementNs ()

void	xmlSAX2EndElementNs		(void * ctx, 
const
xmlChar * localname,
const xmlChar * prefix,
const xmlChar * URI)
-

SAX2 callback when an element end has been detected by the parser. It provides the namespace informations for the element.

+

SAX2 callback when an element end has been detected by the parser. It provides the namespace information for the element.

ctx:the user data (XML parser context)
localname:the local name of the element
prefix:the element namespace prefix if available
URI:the element namespace name if available

xmlSAX2EntityDecl ()

void	xmlSAX2EntityDecl		(void * ctx, 
const
xmlChar * name,
int type,
const xmlChar * publicId,
const xmlChar * systemId,
xmlChar * content)
@@ -226,7 +226,7 @@ void xmlSAX2EntityDecl (void * ctx,
ctx:the user data (XML parser context)
fullname:The element name, including namespace prefix
atts:An array of name/value attributes pairs, NULL terminated

xmlSAX2StartElementNs ()

void	xmlSAX2StartElementNs		(void * ctx, 
const
xmlChar * localname,
const xmlChar * prefix,
const xmlChar * URI,
int nb_namespaces,
const xmlChar ** namespaces,
int nb_attributes,
int nb_defaulted,
const xmlChar ** attributes)
-

SAX2 callback when an element start has been detected by the parser. It provides the namespace informations for the element, as well as the new namespace declarations on the element.

+

SAX2 callback when an element start has been detected by the parser. It provides the namespace information for the element, as well as the new namespace declarations on the element.

ctx:the user data (XML parser context)
localname:the local name of the element
prefix:the element namespace prefix if available
URI:the element namespace name if available
nb_namespaces:number of namespace definitions on that node
namespaces:pointer to the array of prefix/URI pairs namespace definitions
nb_attributes:the number of attributes on that node
nb_defaulted:the number of defaulted attributes.
attributes:pointer to the array of (localname/prefix/URI/value/end) attribute values.

xmlSAX2UnparsedEntityDecl ()

void	xmlSAX2UnparsedEntityDecl	(void * ctx, 
const
xmlChar * name,
const xmlChar * publicId,
const xmlChar * systemId,
const xmlChar * notationName)
diff --git a/doc/devhelp/libxml2-debugXML.html b/doc/devhelp/libxml2-debugXML.html index 0eefb4e8..8eb2e48d 100644 --- a/doc/devhelp/libxml2-debugXML.html +++ b/doc/devhelp/libxml2-debugXML.html @@ -152,7 +152,7 @@ void xmlShell (x
output:the FILE * for the output
node:the node
depth:the indentation level.

xmlDebugDumpString ()

void	xmlDebugDumpString		(FILE * output, 
const
xmlChar * str)
-

Dumps informations about the string, shorten it if necessary

+

Dumps information about the string, shorten it if necessary

output:the FILE * for the output
str:the string


xmlShellDir ()

int	xmlShellDir			(xmlShellCtxtPtr ctxt, 
char * arg,
xmlNodePtr node,
xmlNodePtr node2)
-

Implements the XML shell function "dir" dumps informations about the node (namespace, attributes, content).

+

Implements the XML shell function "dir" dumps information about the node (namespace, attributes, content).

ctxt:the shell context
arg:unused
node:a node
node2:unused
Returns:0


+
out:a pointer to an array of bytes to store the result
outlen:the length of @out
in:a pointer to an array of ISO Latin 1 chars
inlen:the length of @in
Returns:the number of bytes written if success, or -1 otherwise The value of @inlen after return is the number of octets consumed if the return value is positive, else unpredictable. The value of @outlen after return is the number of octets produced.



+
ctx:an FTP context
Returns:-1 in case of error, 0 otherwise

+
ctx:an FTP context
Returns:-1 in case of error, 0 otherwise


+
ctx:an FTP context
file:a file or directory on the server
Returns:-1 in case of error, 1 if DELE worked, 0 if it failed

xmlNanoFTPFreeCtxt ()

void	xmlNanoFTPFreeCtxt		(void * ctx)

Frees the context after closing the connection.

@@ -131,11 +131,11 @@ void xmlNanoFTPCleanup (void);

xmlNanoFTPGet ()

int	xmlNanoFTPGet			(void * ctx, 
ftpDataCallback callback,
void * userData,
const char * filename)

Fetch the given file from the server. All data are passed back in the callbacks. The last callback has a size of 0 block.

-
ctx:an FTP context
callback:the user callback
userData:the user callback data
filename:the file to retrieve
Returns:-1 incase of error, 0 otherwise
+
ctx:an FTP context
callback:the user callback
userData:the user callback data
filename:the file to retrieve
Returns:-1 in case of error, 0 otherwise

xmlNanoFTPGetConnection ()

SOCKET	xmlNanoFTPGetConnection		(void * ctx)

Try to open a data connection to the server. Currently only passive mode is supported.

-
ctx:an FTP context
Returns:-1 incase of error, 0 otherwise
+
ctx:an FTP context
Returns:-1 in case of error, 0 otherwise

xmlNanoFTPGetResponse ()

int	xmlNanoFTPGetResponse		(void * ctx)

Get the response from the FTP server after a command.

@@ -146,12 +146,12 @@ void xmlNanoFTPCleanup (void);
ctx:an FTP context
filename:the file to retrieve (or NULL if path is in context).
Returns:the socket for the data connection, or <0 in case of error


xmlNanoFTPList ()

int	xmlNanoFTPList			(void * ctx, 
ftpListCallback callback,
void * userData,
const char * filename)

Do a listing on the server. All files info are passed back in the callbacks.

-
ctx:an FTP context
callback:the user callback
userData:the user callback data
filename:optional files to list
Returns:-1 incase of error, 0 otherwise
+
ctx:an FTP context
callback:the user callback
userData:the user callback data
filename:optional files to list
Returns:-1 in case of error, 0 otherwise



xmlNanoFTPQuit ()

int	xmlNanoFTPQuit			(void * ctx)
@@ -174,7 +174,7 @@ void
xmlNanoFTPCleanup (void);
ctx:the FTP context
dest:a buffer
len:the buffer length
Returns:the number of byte read. 0 is an indication of an end of connection. -1 indicates a parameter error.






diff --git a/doc/devhelp/libxml2-parser.html b/doc/devhelp/libxml2-parser.html index 601c54d6..8cd6a705 100644 --- a/doc/devhelp/libxml2-parser.html +++ b/doc/devhelp/libxml2-parser.html @@ -55,6 +55,7 @@ typedef
xmlParserNodeInfo * typedef struct _xmlParserNodeInfoSeq xmlParserNodeInfoSeq; typedef enum xmlFeature; typedef enum xmlParserMode; +typedef struct _xmlStartTag xmlStartTag; typedef enum xmlParserOption; typedef xmlSAXHandlerV1 * xmlSAXHandlerV1Ptr; typedef struct _xmlParserNodeInfo xmlParserNodeInfo; @@ -350,6 +351,12 @@ void xmlSetExternalEntityLoader (

Typedef xmlSAXHandlerV1Ptr

xmlSAXHandlerV1 * xmlSAXHandlerV1Ptr;
 

+

+
+

Structure xmlStartTag

struct _xmlStartTag {
+The content of this structure is not made public by the API.
+} xmlStartTag;
+



Function type endElementNsSAX2Func

void	endElementNsSAX2Func		(void * ctx, 
const
xmlChar * localname,
const xmlChar * prefix,
const xmlChar * URI)
-

SAX2 callback when an element end has been detected by the parser. It provides the namespace informations for the element.

+

SAX2 callback when an element end has been detected by the parser. It provides the namespace information for the element.

ctx:the user data (XML parser context)
localname:the local name of the element
prefix:the element namespace prefix if available
URI:the element namespace name if available


Function type startElementNsSAX2Func

void	startElementNsSAX2Func		(void * ctx, 
const
xmlChar * localname,
const xmlChar * prefix,
const xmlChar * URI,
int nb_namespaces,
const xmlChar ** namespaces,
int nb_attributes,
int nb_defaulted,
const xmlChar ** attributes)
-

SAX2 callback when an element start has been detected by the parser. It provides the namespace informations for the element, as well as the new namespace declarations on the element.

+

SAX2 callback when an element start has been detected by the parser. It provides the namespace information for the element, as well as the new namespace declarations on the element.

ctx:the user data (XML parser context)
localname:the local name of the element
prefix:the element namespace prefix if available
URI:the element namespace name if available
nb_namespaces:number of namespace definitions on that node
namespaces:pointer to the array of prefix/URI pairs namespace definitions
nb_attributes:the number of attributes on that node
nb_defaulted:the number of defaulted attributes. The defaulted ones are at the end of the array
attributes:pointer to the array of (localname/prefix/URI/value/end) attribute values.

Function type startElementSAXFunc

void	startElementSAXFunc		(void * ctx, 
const
xmlChar * name,
const xmlChar ** atts)
@@ -598,11 +605,11 @@ void xmlSetExternalEntityLoader (

xmlParseBalancedChunkMemory ()

int	xmlParseBalancedChunkMemory	(xmlDocPtr doc, 
xmlSAXHandlerPtr sax,
void * user_data,
int depth,
const xmlChar * string,
xmlNodePtr * lst)

Parse a well-balanced chunk of an XML document called by the parser The allowed sequence for the Well Balanced Chunk is the one defined by the content production in the XML grammar: [43] content ::= (element | CharData | Reference | CDSect | PI | Comment)*

-
doc:the document the chunk pertains to
sax:the SAX handler bloc (possibly NULL)
user_data:The user data returned on SAX callbacks (possibly NULL)
depth:Used for loop detection, use 0
string:the input string in UTF8 or ISO-Latin (zero terminated)
lst:the return value for the set of parsed nodes
Returns:0 if the chunk is well balanced, -1 in case of args problem and the parser error code otherwise
+
doc:the document the chunk pertains to (must not be NULL)
sax:the SAX handler block (possibly NULL)
user_data:The user data returned on SAX callbacks (possibly NULL)
depth:Used for loop detection, use 0
string:the input string in UTF8 or ISO-Latin (zero terminated)
lst:the return value for the set of parsed nodes
Returns:0 if the chunk is well balanced, -1 in case of args problem and the parser error code otherwise

xmlParseBalancedChunkMemoryRecover ()

int	xmlParseBalancedChunkMemoryRecover	(xmlDocPtr doc, 
xmlSAXHandlerPtr sax,
void * user_data,
int depth,
const xmlChar * string,
xmlNodePtr * lst,
int recover)

Parse a well-balanced chunk of an XML document called by the parser The allowed sequence for the Well Balanced Chunk is the one defined by the content production in the XML grammar: [43] content ::= (element | CharData | Reference | CDSect | PI | Comment)*

-
doc:the document the chunk pertains to
sax:the SAX handler bloc (possibly NULL)
user_data:The user data returned on SAX callbacks (possibly NULL)
depth:Used for loop detection, use 0
string:the input string in UTF8 or ISO-Latin (zero terminated)
lst:the return value for the set of parsed nodes
recover:return nodes even if the data is broken (use 0)
Returns:0 if the chunk is well balanced, -1 in case of args problem and the parser error code otherwise In case recover is set to 1, the nodelist will not be empty even if the parsed chunk is not well balanced, assuming the parsing succeeded to some extent.
+
doc:the document the chunk pertains to (must not be NULL)
sax:the SAX handler block (possibly NULL)
user_data:The user data returned on SAX callbacks (possibly NULL)
depth:Used for loop detection, use 0
string:the input string in UTF8 or ISO-Latin (zero terminated)
lst:the return value for the set of parsed nodes
recover:return nodes even if the data is broken (use 0)
Returns:0 if the chunk is well balanced, -1 in case of args problem and the parser error code otherwise In case recover is set to 1, the nodelist will not be empty even if the parsed chunk is not well balanced, assuming the parsing succeeded to some extent.

xmlParseChunk ()

int	xmlParseChunk			(xmlParserCtxtPtr ctxt, 
const char * chunk,
int size,
int terminate)

Parse a Chunk of memory

@@ -634,7 +641,7 @@ void xmlSetExternalEntityLoader (

xmlParseExternalEntity ()

int	xmlParseExternalEntity		(xmlDocPtr doc, 
xmlSAXHandlerPtr sax,
void * user_data,
int depth,
const xmlChar * URL,
const xmlChar * ID,
xmlNodePtr * lst)

Parse an external general entity An external general parsed entity is well-formed if it matches the production labeled extParsedEnt. [78] extParsedEnt ::= TextDecl? content

-
doc:the document the chunk pertains to
sax:the SAX handler bloc (possibly NULL)
user_data:The user data returned on SAX callbacks (possibly NULL)
depth:Used for loop detection, use 0
URL:the URL for the entity to load
ID:the System ID for the entity to load
lst:the return value for the set of parsed nodes
Returns:0 if the entity is well formed, -1 in case of args problem and the parser error code otherwise
+
doc:the document the chunk pertains to
sax:the SAX handler block (possibly NULL)
user_data:The user data returned on SAX callbacks (possibly NULL)
depth:Used for loop detection, use 0
URL:the URL for the entity to load
ID:the System ID for the entity to load
lst:the return value for the set of parsed nodes
Returns:0 if the entity is well formed, -1 in case of args problem and the parser error code otherwise

xmlParseFile ()

xmlDocPtr	xmlParseFile		(const char * filename)

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

diff --git a/doc/devhelp/libxml2-parserInternals.html b/doc/devhelp/libxml2-parserInternals.html index 2fca6bdd..989963db 100644 --- a/doc/devhelp/libxml2-parserInternals.html +++ b/doc/devhelp/libxml2-parserInternals.html @@ -327,7 +327,7 @@ void xmlParseEntityDecl (
filename:the filename
encoding:a free form C string describing the HTML document encoding, or NULL
Returns:the new parser context or NULL


inputPop ()

xmlParserInputPtr	inputPop	(xmlParserCtxtPtr ctxt)
@@ -392,7 +392,7 @@ void xmlParseEntityDecl (

xmlErrMemory ()

void	xmlErrMemory			(xmlParserCtxtPtr ctxt, 
const char * extra)

Handle a redefinition of attribute error

-
ctxt:an XML parser context
extra:extra informations
+
ctxt:an XML parser context
extra:extra information


xmlParseContent ()

void	xmlParseContent			(xmlParserCtxtPtr ctxt)
-

Parse a content: [43] content ::= (element | CharData | Reference | CDSect | PI | Comment)*

+

Parse a content sequence. Stops at EOF or '</'. [43] content ::= (element | CharData | Reference | CDSect | PI | Comment)*

ctxt:an XML parser context

xmlParseDefaultDecl ()

int	xmlParseDefaultDecl		(xmlParserCtxtPtr ctxt, 
xmlChar ** value)
diff --git a/doc/devhelp/libxml2-relaxng.html b/doc/devhelp/libxml2-relaxng.html index 128ff3a6..07aa9a35 100644 --- a/doc/devhelp/libxml2-relaxng.html +++ b/doc/devhelp/libxml2-relaxng.html @@ -205,7 +205,7 @@ The content of this structure is not made public by the API.
ctxt:a Relax-NG validation context
err:the error callback result
warn:the warning callback result
ctx:contextual data for the callbacks result
Returns:-1 in case of failure, 0 otherwise.

xmlRelaxNGGetValidErrors ()

int	xmlRelaxNGGetValidErrors	(xmlRelaxNGValidCtxtPtr ctxt, 
xmlRelaxNGValidityErrorFunc * err,
xmlRelaxNGValidityWarningFunc * warn,
void ** ctx)
-

Get the error and warning callback informations

+

Get the error and warning callback information

ctxt:a Relax-NG validation context
err:the error function result
warn:the warning function result
ctx:the functions context result
Returns:-1 in case of error and 0 otherwise


xmlRelaxNGSetValidErrors ()

void	xmlRelaxNGSetValidErrors	(xmlRelaxNGValidCtxtPtr ctxt, 
xmlRelaxNGValidityErrorFunc err,
xmlRelaxNGValidityWarningFunc warn,
void * ctx)
-

Set the error and warning callback informations

+

Set the error and warning callback information

ctxt:a Relax-NG validation context
err:the error function
warn:the warning function
ctx:the functions context

xmlRelaxNGSetValidStructuredErrors ()

void	xmlRelaxNGSetValidStructuredErrors	(xmlRelaxNGValidCtxtPtr ctxt, 
xmlStructuredErrorFunc serror,
void * ctx)
@@ -269,7 +269,7 @@ The content of this structure is not made public by the API.
ctxt:the validation context
doc:a document instance
elem:an element instance
Returns:1 if no validation problem was found or 0 if validating the element requires a full node, and -1 in case of error.

xmlRelaxParserSetFlag ()

int	xmlRelaxParserSetFlag		(xmlRelaxNGParserCtxtPtr ctxt, 
int flags)
-

Semi private function used to pass informations to a parser context which are a combination of xmlRelaxNGParserFlag .

+

Semi private function used to pass information to a parser context which are a combination of xmlRelaxNGParserFlag .

ctxt:a RelaxNG parser context
flags:a set of flags values
Returns:0 if success and -1 in case of error

diff --git a/doc/devhelp/libxml2-tree.html b/doc/devhelp/libxml2-tree.html index 546844dc..8d60f111 100644 --- a/doc/devhelp/libxml2-tree.html +++ b/doc/devhelp/libxml2-tree.html @@ -326,7 +326,7 @@ void xmlFreeNsList (xmlNs * ns : pointer to the associated namespace xmlAttributeType atype : the attribute type if validating - void * psvi : for type/PSVI informations + void * psvi : for type/PSVI information } xmlAttr;

@@ -454,7 +454,7 @@ The content of this structure is not made public by the API. const xmlChar * URL : The URI for that document int charset : Internal flag for charset handling, actually an xmlCharEncoding struct _xmlDict * dict : dict used to allocate names or NULL - void * psvi : for type/PSVI informations + void * psvi : for type/PSVI information int parseFlags : set of xmlParserOption used to parse the document int properties : set of xmlDocProperties for this document set at the end of parsing } xmlDoc; @@ -665,7 +665,7 @@ The content of this structure is not made public by the API. xmlChar * content : the content struct _xmlAttr * properties : properties list xmlNs * nsDef : namespace definitions on this node - void * psvi : for type/PSVI informations + void * psvi : for type/PSVI information unsigned short line : line number unsigned short extra : extra data for XPath/XSLT } xmlNode; @@ -758,7 +758,7 @@ The content of this structure is not made public by the API. int nameNr : Depth of the parsing stack int nameMax : Max depth of the parsing stack const xmlChar * * nameTab : array of nodes - long nbChars : number of xmlChar processed + long nbChars : unused long checkIndex : used by progressive parsing lookup int keepBlanks : ugly but ... int disableSAX : SAX callbacks are disabled @@ -794,7 +794,7 @@ The content of this structure is not made public by the API. int nsMax : the size of the arrays const xmlChar * * nsTab : the array of prefix/namespace name int * attallocs : which attribute were allocated - void * * pushTab : array of data for push + xmlStartTag * pushTab : array of data for push xmlHashTablePtr attsDefault : defaulted attributes if any xmlHashTablePtr attsSpecial : non-CDATA attributes if any int nsWellFormed : is the document XML Namespace okay @@ -803,7 +803,7 @@ The content of this structure is not made public by the API. int freeElemsNr : number of freed element nodes xmlNodePtr freeElems : List of freed element nodes int freeAttrsNr : number of freed attributes nodes - xmlAttrPtr freeAttrs : * the complete error informations for the last error. * + xmlAttrPtr freeAttrs : * the complete error information for the last error. * xmlError lastError xmlParserMode parseMode : the parser mode unsigned long nbentities : number of entities references @@ -1317,7 +1317,7 @@ The content of this structure is not made public by the API.

doc:the target document
name:the processing instruction name
content:the PI content
Returns:a pointer to the new node object.

xmlNewDocProp ()

xmlAttrPtr	xmlNewDocProp		(xmlDocPtr doc, 
const xmlChar * name,
const xmlChar * value)
-

Create a new property carried by a document.

+

Create a new property carried by a document. NOTE: @value is supposed to be a piece of XML CDATA, so it allows entity references, but XML special chars need to be escaped first by using xmlEncodeEntitiesReentrant(). Use xmlNewProp() if you don't need entities support.

doc:the document
name:the name of the attribute
value:the value of the attribute
Returns:a pointer to the attribute

xmlNewDocRawNode ()

xmlNodePtr	xmlNewDocRawNode	(xmlDocPtr doc, 
xmlNsPtr ns,
const xmlChar * name,
const xmlChar * content)
diff --git a/doc/devhelp/libxml2-xinclude.html b/doc/devhelp/libxml2-xinclude.html index 12a61d5a..140fb40f 100644 --- a/doc/devhelp/libxml2-xinclude.html +++ b/doc/devhelp/libxml2-xinclude.html @@ -144,7 +144,7 @@ The content of this structure is not made public by the API.
doc:an XML document
flags:a set of xmlParserOption used for parsing XML includes
data:application data that will be passed to the parser context in the _private field of the parser context(s)
Returns:0 if no substitution were done, -1 if some processing failed or the number of substitutions done.

xmlXIncludeProcessNode ()

int	xmlXIncludeProcessNode		(xmlXIncludeCtxtPtr ctxt, 
xmlNodePtr node)
-

Implement the XInclude substitution for the given subtree reusing the informations and data coming from the given context.

+

Implement the XInclude substitution for the given subtree reusing the information and data coming from the given context.

ctxt:an existing XInclude context
node:a node in an XML document
Returns:0 if no substitution were done, -1 if some processing failed or the number of substitutions done.

xmlXIncludeProcessTree ()

int	xmlXIncludeProcessTree		(xmlNodePtr tree)
diff --git a/doc/devhelp/libxml2-xmlIO.html b/doc/devhelp/libxml2-xmlIO.html index 91d0ea6c..8597f4db 100644 --- a/doc/devhelp/libxml2-xmlIO.html +++ b/doc/devhelp/libxml2-xmlIO.html @@ -47,6 +47,7 @@ typedef int xmlInputMatchCallback (char const * filename); void xmlRegisterDefaultOutputCallbacks (void); int xmlFileClose (void * context); +int xmlPopOutputCallbacks (void); typedef int xmlOutputMatchCallback (char const * filename); int xmlParserInputBufferPush (xmlParserInputBufferPtr in,
int len,
const char * buf); int xmlIOFTPRead (void * context,
char * buffer,
int len); @@ -320,6 +321,10 @@ void * xmlIOHTTPOpenW (const char * post_uri,

xmlPopInputCallbacks ()

int	xmlPopInputCallbacks		(void)

Clear the top input callback from the input stack. this includes the compiled-in I/O.

Returns:the number of input callback registered or -1 in case of error.
+
+


xmlParserPrintFileInfo ()

void	xmlParserPrintFileInfo		(xmlParserInputPtr input)
-

Displays the associated file and line informations for the current input

+

Displays the associated file and line information for the current input

input:an xmlParserInputPtr input


Macro XMLCDECL

#define XMLCDECL;
-

+

Macro which declares the calling convention for exported functions that use '...'.


Macro XMLPUBFUN

#define XMLPUBFUN;
-

+

Macro which declares an exportable function

+
+
+

Macro XMLPUBLIC

#define XMLPUBLIC;
+

Macro which declares a public symbol


Macro XMLPUBVAR

#define XMLPUBVAR;
-

+

Macro which declares an exportable variable


diff --git a/doc/devhelp/libxml2-xmlreader.html b/doc/devhelp/libxml2-xmlreader.html index e72c29d9..a000d56a 100644 --- a/doc/devhelp/libxml2-xmlreader.html +++ b/doc/devhelp/libxml2-xmlreader.html @@ -464,7 +464,7 @@ The content of this structure is not made public by the API.
reader:the xmlTextReaderPtr used
Returns:the xmlReaderTypes of the current node or -1 in case of error

xmlTextReaderNormalization ()

int	xmlTextReaderNormalization	(xmlTextReaderPtr reader)
-

The value indicating whether to normalize white space and attribute values. Since attribute value and end of line normalizations are a MUST in the XML specification only the value true is accepted. The broken bahaviour of accepting out of range character entities like &#0; is of course not supported either.

+

The value indicating whether to normalize white space and attribute values. Since attribute value and end of line normalizations are a MUST in the XML specification only the value true is accepted. The broken behaviour of accepting out of range character entities like &#0; is of course not supported either.

reader:the xmlTextReaderPtr used
Returns:1 or -1 in case of error.

xmlTextReaderPrefix ()

xmlChar *	xmlTextReaderPrefix	(xmlTextReaderPtr reader)
diff --git a/doc/devhelp/libxml2-xmlregexp.html b/doc/devhelp/libxml2-xmlregexp.html index 4fc33c6e..cf13627b 100644 --- a/doc/devhelp/libxml2-xmlregexp.html +++ b/doc/devhelp/libxml2-xmlregexp.html @@ -231,11 +231,11 @@ The content of this structure is not made public by the API.
ctxt:the expressions context
exp:the englobing expression
sub:the subexpression
Returns:1 if true 0 if false and -1 in case of failure.

xmlRegExecErrInfo ()

int	xmlRegExecErrInfo		(xmlRegExecCtxtPtr exec, 
const xmlChar ** string,
int * nbval,
int * nbneg,
xmlChar ** values,
int * terminal)
-

Extract error informations from the regexp execution, the parameter @string will be updated with the value pushed and not accepted, the parameter @values must point to an array of @nbval string pointers on return nbval will contain the number of possible strings in that state and the @values array will be updated with them. The string values

+

Extract error information from the regexp execution, the parameter @string will be updated with the value pushed and not accepted, the parameter @values must point to an array of @nbval string pointers on return nbval will contain the number of possible strings in that state and the @values array will be updated with them. The string values

exec:a regexp execution context generating an error
string:return value for the error string
nbval:pointer to the number of accepted values IN/OUT
nbneg:return number of negative transitions
values:pointer to the array of acceptable values
terminal:return value if this was a terminal state
Returns:will be freed with the @exec context and don't need to be deallocated. Returns: 0 in case of success or -1 in case of error.

xmlRegExecNextValues ()

int	xmlRegExecNextValues		(xmlRegExecCtxtPtr exec, 
int * nbval,
int * nbneg,
xmlChar ** values,
int * terminal)
-

Extract informations from the regexp execution, the parameter @values must point to an array of @nbval string pointers on return nbval will contain the number of possible strings in that state and the @values array will be updated with them. The string values

+

Extract information from the regexp execution, the parameter @values must point to an array of @nbval string pointers on return nbval will contain the number of possible strings in that state and the @values array will be updated with them. The string values

exec:a regexp execution context
nbval:pointer to the number of accepted values IN/OUT
nbneg:return number of negative transitions
values:pointer to the array of acceptable values
terminal:return value if this was a terminal state
Returns:will be freed with the @exec context and don't need to be deallocated. Returns: 0 in case of success or -1 in case of error.

xmlRegExecPushString ()

int	xmlRegExecPushString		(xmlRegExecCtxtPtr exec, 
const xmlChar * value,
void * data)
diff --git a/doc/devhelp/libxml2-xmlsave.html b/doc/devhelp/libxml2-xmlsave.html index f006e3bb..6e851dea 100644 --- a/doc/devhelp/libxml2-xmlsave.html +++ b/doc/devhelp/libxml2-xmlsave.html @@ -55,7 +55,7 @@ int xmlSaveSetAttrEscape (xmlSaveFlush (xmlSaveCtxtPtr ctxt); long xmlSaveDoc (xmlSaveCtxtPtr ctxt,
xmlDocPtr doc); int xmlSaveSetEscape (xmlSaveCtxtPtr ctxt,
xmlCharEncodingOutputFunc escape); -long xmlSaveTree (xmlSaveCtxtPtr ctxt,
xmlNodePtr node); +long xmlSaveTree (xmlSaveCtxtPtr ctxt,
xmlNodePtr cur);
@@ -123,9 +123,9 @@ The content of this structure is not made public by the API.

Create a document saving context serializing to a file descriptor with the encoding and the options given

iowrite:an I/O write function
ioclose:an I/O close function
ioctx:an I/O handler
encoding:the encoding name to use or NULL
options:a set of xmlSaveOptions
Returns:a new serialization context or NULL in case of error.

-

xmlSaveTree ()

long	xmlSaveTree			(xmlSaveCtxtPtr ctxt, 
xmlNodePtr node)
+

xmlSaveTree ()

long	xmlSaveTree			(xmlSaveCtxtPtr ctxt, 
xmlNodePtr cur)

Save a subtree starting at the node parameter to a saving context TODO: The function is not fully implemented yet as it does not return the byte count but 0 instead

-
ctxt:a document saving context
node:the top node of the subtree to save
Returns:the number of byte written or -1 in case of error
+
ctxt:a document saving context
cur:
Returns:the number of byte written or -1 in case of error

diff --git a/doc/devhelp/libxml2-xmlschemas.html b/doc/devhelp/libxml2-xmlschemas.html index 140558bc..4bac771d 100644 --- a/doc/devhelp/libxml2-xmlschemas.html +++ b/doc/devhelp/libxml2-xmlschemas.html @@ -193,7 +193,7 @@ The content of this structure is not made public by the API.
ctx:the validation context
msg:the message
...:extra arguments



xmlSchemaGetValidErrors ()

int	xmlSchemaGetValidErrors		(xmlSchemaValidCtxtPtr ctxt, 
xmlSchemaValidityErrorFunc * err,
xmlSchemaValidityWarningFunc * warn,
void ** ctx)
-

Get the error and warning callback informations

+

Get the error and warning callback information

ctxt:a XML-Schema validation context
err:the error function result
warn:the warning function result
ctx:the functions context result
Returns:-1 in case of error and 0 otherwise

xmlSchemaIsValid ()

int	xmlSchemaIsValid		(xmlSchemaValidCtxtPtr ctxt)
@@ -265,7 +265,7 @@ The content of this structure is not made public by the API.
ctxt:a schema parser context
serror:the structured error function
ctx:the functions context

xmlSchemaSetValidErrors ()

void	xmlSchemaSetValidErrors		(xmlSchemaValidCtxtPtr ctxt, 
xmlSchemaValidityErrorFunc err,
xmlSchemaValidityWarningFunc warn,
void * ctx)
-

Set the error and warning callback informations

+

Set the error and warning callback information

ctxt:a schema validation context
err:the error function
warn:the warning function
ctx:the functions context

xmlSchemaSetValidOptions ()

int	xmlSchemaSetValidOptions	(xmlSchemaValidCtxtPtr ctxt, 
int options)
diff --git a/doc/devhelp/libxml2-xmlversion.html b/doc/devhelp/libxml2-xmlversion.html index 7b1d0e3f..7e0965d7 100644 --- a/doc/devhelp/libxml2-xmlversion.html +++ b/doc/devhelp/libxml2-xmlversion.html @@ -2,7 +2,7 @@ - xmlversion: compile-time version informations + xmlversion: compile-time version information @@ -38,8 +38,8 @@

xmlversion

-

xmlversion - compile-time version informations

-

compile-time version informations for the XML library

+

xmlversion - compile-time version information

+

compile-time version information for the XML library

Author(s): Daniel Veillard

Synopsis

diff --git a/doc/devhelp/libxml2-xpath.html b/doc/devhelp/libxml2-xpath.html index 9be0e5a0..da986e8e 100644 --- a/doc/devhelp/libxml2-xpath.html +++ b/doc/devhelp/libxml2-xpath.html @@ -218,8 +218,6 @@ The content of this structure is not made public by the API. unsigned long opLimit unsigned long opCount int depth - int maxDepth - int maxParserDepth } xmlXPathContext;

diff --git a/doc/devhelp/libxml2.devhelp b/doc/devhelp/libxml2.devhelp index 51b6f262..e929016b 100644 --- a/doc/devhelp/libxml2.devhelp +++ b/doc/devhelp/libxml2.devhelp @@ -1,5 +1,5 @@ - + @@ -155,6 +155,7 @@ + @@ -1798,6 +1799,7 @@ + @@ -2732,6 +2734,7 @@ + diff --git a/doc/examples/index.html b/doc/examples/index.html index 97077596..f4ee1194 100644 --- a/doc/examples/index.html +++ b/doc/examples/index.html @@ -11,4 +11,4 @@ A:link, A:visited, A:active { text-decoration: underline } of the example:

  • xmlWriter :

  • InputOutput :

    • io1.c: Example of custom Input/Output
    • io2.c: Output to char buffer
  • Tree :

    • tree1.c: Navigates a tree to print element names
    • tree2.c: Creates a tree
  • XPath :

    • xpath1.c: Evaluate XPath expression and prints result node set.
    • xpath2.c: Load a document, locate subelements with XPath, modify said elements and save the resulting document.
  • Parsing :

    • parse1.c: Parse an XML file to a tree and free it
    • parse2.c: Parse and validate an XML file to a tree and free the result
    • parse3.c: Parse an XML document in memory to a tree and free it
    • parse4.c: Parse an XML document chunk by chunk to a tree and free it
  • xmlReader :

    • reader1.c: Parse an XML file with an xmlReader
    • reader2.c: Parse and validate an XML file with an xmlReader
    • reader3.c: Show how to extract subdocuments with xmlReader
    • reader4.c: Parse multiple XML files reusing an xmlReader

Getting the compilation options and libraries dependencies needed to generate binaries from the examples is best done on Linux/Unix by using the xml2-config script which should have been installed as part of make -install step or when installing the libxml2 development package:

gcc -o example `xml2-config --cflags` example.c `xml2-config --libs`

InputOutput Examples

io1.c: Example of custom Input/Output

Demonstrate the use of xmlRegisterInputCallbacks to build a custom I/O layer, this is used in an XInclude method context to show how dynamic document can be built in a clean way.

Includes:

Uses:

Usage:

io1

Author: Daniel Veillard

io2.c: Output to char buffer

Demonstrate the use of xmlDocDumpMemory to output document to a character buffer

Includes:

Uses:

Usage:

io2

Author: John Fleck

Parsing Examples

parse1.c: Parse an XML file to a tree and free it

Demonstrate the use of xmlReadFile() to read an XML file into a tree and xmlFreeDoc() to free the resulting tree

Includes:

Uses:

Usage:

parse1 test1.xml

Author: Daniel Veillard

parse2.c: Parse and validate an XML file to a tree and free the result

Create a parser context for an XML file, then parse and validate the file, creating a tree, check the validation result and xmlFreeDoc() to free the resulting tree.

Includes:

Uses:

Usage:

parse2 test2.xml

Author: Daniel Veillard

parse3.c: Parse an XML document in memory to a tree and free it

Demonstrate the use of xmlReadMemory() to read an XML file into a tree and xmlFreeDoc() to free the resulting tree

Includes:

Uses:

Usage:

parse3

Author: Daniel Veillard

parse4.c: Parse an XML document chunk by chunk to a tree and free it

Demonstrate the use of xmlCreatePushParserCtxt() and xmlParseChunk() to read an XML file progressively into a tree and xmlFreeDoc() to free the resulting tree

Includes:

Uses:

Usage:

parse4 test3.xml

Author: Daniel Veillard

Tree Examples

tree1.c: Navigates a tree to print element names

Parse a file to a tree, use xmlDocGetRootElement() to get the root element, then walk the document and print all the element name in document order.

Includes:

Uses:

Usage:

tree1 filename_or_URL

Author: Dodji Seketeli

tree2.c: Creates a tree

Shows how to create document, nodes and dump it to stdout or file.

Includes:

Uses:

Usage:

tree2 <filename> -Default output: stdout

Author: Lucas Brasilino <brasilino@recife.pe.gov.br>

XPath Examples

xpath1.c: Evaluate XPath expression and prints result node set.

Shows how to evaluate XPath expression and register known namespaces in XPath context.

Includes:

Uses:

Usage:

xpath1 <xml-file> <xpath-expr> [<known-ns-list>]

Author: Aleksey Sanin

xpath2.c: Load a document, locate subelements with XPath, modify said elements and save the resulting document.

Shows how to make a full round-trip from a load/edit/save

Includes:

Uses:

Usage:

xpath2 <xml-file> <xpath-expr> <new-value>

Author: Aleksey Sanin and Daniel Veillard

xmlReader Examples

reader1.c: Parse an XML file with an xmlReader

Demonstrate the use of xmlReaderForFile() to parse an XML file and dump the informations about the nodes found in the process. (Note that the XMLReader functions require libxml2 version later than 2.6.)

Includes:

Uses:

Usage:

reader1 <filename>

Author: Daniel Veillard

reader2.c: Parse and validate an XML file with an xmlReader

Demonstrate the use of xmlReaderForFile() to parse an XML file validating the content in the process and activating options like entities substitution, and DTD attributes defaulting. (Note that the XMLReader functions require libxml2 version later than 2.6.)

Includes:

Uses:

Usage:

reader2 <valid_xml_filename>

Author: Daniel Veillard

reader3.c: Show how to extract subdocuments with xmlReader

Demonstrate the use of xmlTextReaderPreservePattern() to parse an XML file with the xmlReader while collecting only some subparts of the document. (Note that the XMLReader functions require libxml2 version later than 2.6.)

Includes:

Uses:

Usage:

reader3

Author: Daniel Veillard

reader4.c: Parse multiple XML files reusing an xmlReader

Demonstrate the use of xmlReaderForFile() and xmlReaderNewFile to parse XML files while reusing the reader object and parser context. (Note that the XMLReader functions require libxml2 version later than 2.6.)

Includes:

Uses:

Usage:

reader4 <filename> [ filename ... ]

Author: Graham Bennett

xmlWriter Examples

testWriter.c: use various APIs for the xmlWriter

tests a number of APIs for the xmlWriter, especially the various methods to write to a filename, to a memory buffer, to a new document, or to a subtree. It shows how to do encoding string conversions too. The resulting documents are then serialized.

Includes:

Uses:

Usage:

testWriter

Author: Alfred Mickautsch

Daniel Veillard

+install step or when installing the libxml2 development package:

gcc -o example `xml2-config --cflags` example.c `xml2-config --libs`

InputOutput Examples

io1.c: Example of custom Input/Output

Demonstrate the use of xmlRegisterInputCallbacks to build a custom I/O layer, this is used in an XInclude method context to show how dynamic document can be built in a clean way.

Includes:

Uses:

Usage:

io1

Author: Daniel Veillard

io2.c: Output to char buffer

Demonstrate the use of xmlDocDumpMemory to output document to a character buffer

Includes:

Uses:

Usage:

io2

Author: John Fleck

Parsing Examples

parse1.c: Parse an XML file to a tree and free it

Demonstrate the use of xmlReadFile() to read an XML file into a tree and xmlFreeDoc() to free the resulting tree

Includes:

Uses:

Usage:

parse1 test1.xml

Author: Daniel Veillard

parse2.c: Parse and validate an XML file to a tree and free the result

Create a parser context for an XML file, then parse and validate the file, creating a tree, check the validation result and xmlFreeDoc() to free the resulting tree.

Includes:

Uses:

Usage:

parse2 test2.xml

Author: Daniel Veillard

parse3.c: Parse an XML document in memory to a tree and free it

Demonstrate the use of xmlReadMemory() to read an XML file into a tree and xmlFreeDoc() to free the resulting tree

Includes:

Uses:

Usage:

parse3

Author: Daniel Veillard

parse4.c: Parse an XML document chunk by chunk to a tree and free it

Demonstrate the use of xmlCreatePushParserCtxt() and xmlParseChunk() to read an XML file progressively into a tree and xmlFreeDoc() to free the resulting tree

Includes:

Uses:

Usage:

parse4 test3.xml

Author: Daniel Veillard

Tree Examples

tree1.c: Navigates a tree to print element names

Parse a file to a tree, use xmlDocGetRootElement() to get the root element, then walk the document and print all the element name in document order.

Includes:

Uses:

Usage:

tree1 filename_or_URL

Author: Dodji Seketeli

tree2.c: Creates a tree

Shows how to create document, nodes and dump it to stdout or file.

Includes:

Uses:

Usage:

tree2 <filename> -Default output: stdout

Author: Lucas Brasilino <brasilino@recife.pe.gov.br>

XPath Examples

xpath1.c: Evaluate XPath expression and prints result node set.

Shows how to evaluate XPath expression and register known namespaces in XPath context.

Includes:

Uses:

Usage:

xpath1 <xml-file> <xpath-expr> [<known-ns-list>]

Author: Aleksey Sanin

xpath2.c: Load a document, locate subelements with XPath, modify said elements and save the resulting document.

Shows how to make a full round-trip from a load/edit/save

Includes:

Uses:

Usage:

xpath2 <xml-file> <xpath-expr> <new-value>

Author: Aleksey Sanin and Daniel Veillard

xmlReader Examples

reader1.c: Parse an XML file with an xmlReader

Demonstrate the use of xmlReaderForFile() to parse an XML file and dump the information about the nodes found in the process. (Note that the XMLReader functions require libxml2 version later than 2.6.)

Includes:

Uses:

Usage:

reader1 <filename>

Author: Daniel Veillard

reader2.c: Parse and validate an XML file with an xmlReader

Demonstrate the use of xmlReaderForFile() to parse an XML file validating the content in the process and activating options like entities substitution, and DTD attributes defaulting. (Note that the XMLReader functions require libxml2 version later than 2.6.)

Includes:

Uses:

Usage:

reader2 <valid_xml_filename>

Author: Daniel Veillard

reader3.c: Show how to extract subdocuments with xmlReader

Demonstrate the use of xmlTextReaderPreservePattern() to parse an XML file with the xmlReader while collecting only some subparts of the document. (Note that the XMLReader functions require libxml2 version later than 2.6.)

Includes:

Uses:

Usage:

reader3

Author: Daniel Veillard

reader4.c: Parse multiple XML files reusing an xmlReader

Demonstrate the use of xmlReaderForFile() and xmlReaderNewFile to parse XML files while reusing the reader object and parser context. (Note that the XMLReader functions require libxml2 version later than 2.6.)

Includes:

Uses:

Usage:

reader4 <filename> [ filename ... ]

Author: Graham Bennett

xmlWriter Examples

testWriter.c: use various APIs for the xmlWriter

tests a number of APIs for the xmlWriter, especially the various methods to write to a filename, to a memory buffer, to a new document, or to a subtree. It shows how to do encoding string conversions too. The resulting documents are then serialized.

Includes:

Uses:

Usage:

testWriter

Author: Alfred Mickautsch

Daniel Veillard

diff --git a/doc/html/book1.html b/doc/html/book1.html index a8694937..56abee3a 100644 --- a/doc/html/book1.html +++ b/doc/html/book1.html @@ -10,4 +10,4 @@ A:link, A:visited, A:active { text-decoration: underline } Reference Manual for libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

Reference Manual for libxml2

API Menu
API Indexes
Related links

Table of Contents

  • DOCBparser: old DocBook SGML parser
  • HTMLparser: interface for an HTML 4.0 non-verifying parser
  • HTMLtree: specific APIs to process HTML tree, especially serialization
  • SAX: Old SAX version 1 handler, deprecated
  • SAX2: SAX2 parser interface used to build the DOM tree
  • c14n: Provide Canonical XML and Exclusive XML Canonicalization
  • catalog: interfaces to the Catalog handling system
  • chvalid: Unicode character range checking
  • debugXML: Tree debugging APIs
  • dict: string dictionary
  • encoding: interface for the encoding conversion functions
  • entities: interface for the XML entities handling
  • globals: interface for all global variables of the library
  • hash: Chained hash tables
  • list: lists interfaces
  • nanoftp: minimal FTP implementation
  • nanohttp: minimal HTTP implementation
  • parser: the core parser module
  • parserInternals: internals routines and limits exported by the parser.
  • pattern: pattern expression handling
  • relaxng: implementation of the Relax-NG validation
  • schemasInternals: internal interfaces for XML Schemas
  • schematron: XML Schemastron implementation
  • threads: interfaces for thread handling
  • tree: interfaces for tree manipulation
  • uri: library of generic URI related routines
  • valid: The DTD validation
  • xinclude: implementation of XInclude
  • xlink: unfinished XLink detection module
  • xmlIO: interface for the I/O interfaces used by the parser
  • xmlautomata: API to build regexp automata
  • xmlerror: error handling
  • xmlexports: macros for marking symbols as exportable/importable.
  • xmlmemory: interface for the memory allocator
  • xmlmodule: dynamic module loading
  • xmlreader: the XMLReader implementation
  • xmlregexp: regular expressions handling
  • xmlsave: the XML document serializer
  • xmlschemas: incomplete XML Schemas structure implementation
  • xmlschemastypes: implementation of XML Schema Datatypes
  • xmlstring: set of routines to process strings
  • xmlunicode: Unicode character APIs
  • xmlversion: compile-time version informations
  • xmlwriter: text writing API for XML
  • xpath: XML Path Language implementation
  • xpathInternals: internal interfaces for XML Path Language implementation
  • xpointer: API to handle XML Pointers

Daniel Veillard

+ Reference Manual for libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

Reference Manual for libxml2

API Menu
API Indexes
Related links

Table of Contents

  • DOCBparser: old DocBook SGML parser
  • HTMLparser: interface for an HTML 4.0 non-verifying parser
  • HTMLtree: specific APIs to process HTML tree, especially serialization
  • SAX: Old SAX version 1 handler, deprecated
  • SAX2: SAX2 parser interface used to build the DOM tree
  • c14n: Provide Canonical XML and Exclusive XML Canonicalization
  • catalog: interfaces to the Catalog handling system
  • chvalid: Unicode character range checking
  • debugXML: Tree debugging APIs
  • dict: string dictionary
  • encoding: interface for the encoding conversion functions
  • entities: interface for the XML entities handling
  • globals: interface for all global variables of the library
  • hash: Chained hash tables
  • list: lists interfaces
  • nanoftp: minimal FTP implementation
  • nanohttp: minimal HTTP implementation
  • parser: the core parser module
  • parserInternals: internals routines and limits exported by the parser.
  • pattern: pattern expression handling
  • relaxng: implementation of the Relax-NG validation
  • schemasInternals: internal interfaces for XML Schemas
  • schematron: XML Schemastron implementation
  • threads: interfaces for thread handling
  • tree: interfaces for tree manipulation
  • uri: library of generic URI related routines
  • valid: The DTD validation
  • xinclude: implementation of XInclude
  • xlink: unfinished XLink detection module
  • xmlIO: interface for the I/O interfaces used by the parser
  • xmlautomata: API to build regexp automata
  • xmlerror: error handling
  • xmlexports: macros for marking symbols as exportable/importable.
  • xmlmemory: interface for the memory allocator
  • xmlmodule: dynamic module loading
  • xmlreader: the XMLReader implementation
  • xmlregexp: regular expressions handling
  • xmlsave: the XML document serializer
  • xmlschemas: incomplete XML Schemas structure implementation
  • xmlschemastypes: implementation of XML Schema Datatypes
  • xmlstring: set of routines to process strings
  • xmlunicode: Unicode character APIs
  • xmlversion: compile-time version information
  • xmlwriter: text writing API for XML
  • xpath: XML Path Language implementation
  • xpathInternals: internal interfaces for XML Path Language implementation
  • xpointer: API to handle XML Pointers

Daniel Veillard

diff --git a/doc/html/index.html b/doc/html/index.html index a8694937..56abee3a 100644 --- a/doc/html/index.html +++ b/doc/html/index.html @@ -10,4 +10,4 @@ A:link, A:visited, A:active { text-decoration: underline } Reference Manual for libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

Reference Manual for libxml2

API Menu
API Indexes
Related links

Table of Contents

  • DOCBparser: old DocBook SGML parser
  • HTMLparser: interface for an HTML 4.0 non-verifying parser
  • HTMLtree: specific APIs to process HTML tree, especially serialization
  • SAX: Old SAX version 1 handler, deprecated
  • SAX2: SAX2 parser interface used to build the DOM tree
  • c14n: Provide Canonical XML and Exclusive XML Canonicalization
  • catalog: interfaces to the Catalog handling system
  • chvalid: Unicode character range checking
  • debugXML: Tree debugging APIs
  • dict: string dictionary
  • encoding: interface for the encoding conversion functions
  • entities: interface for the XML entities handling
  • globals: interface for all global variables of the library
  • hash: Chained hash tables
  • list: lists interfaces
  • nanoftp: minimal FTP implementation
  • nanohttp: minimal HTTP implementation
  • parser: the core parser module
  • parserInternals: internals routines and limits exported by the parser.
  • pattern: pattern expression handling
  • relaxng: implementation of the Relax-NG validation
  • schemasInternals: internal interfaces for XML Schemas
  • schematron: XML Schemastron implementation
  • threads: interfaces for thread handling
  • tree: interfaces for tree manipulation
  • uri: library of generic URI related routines
  • valid: The DTD validation
  • xinclude: implementation of XInclude
  • xlink: unfinished XLink detection module
  • xmlIO: interface for the I/O interfaces used by the parser
  • xmlautomata: API to build regexp automata
  • xmlerror: error handling
  • xmlexports: macros for marking symbols as exportable/importable.
  • xmlmemory: interface for the memory allocator
  • xmlmodule: dynamic module loading
  • xmlreader: the XMLReader implementation
  • xmlregexp: regular expressions handling
  • xmlsave: the XML document serializer
  • xmlschemas: incomplete XML Schemas structure implementation
  • xmlschemastypes: implementation of XML Schema Datatypes
  • xmlstring: set of routines to process strings
  • xmlunicode: Unicode character APIs
  • xmlversion: compile-time version informations
  • xmlwriter: text writing API for XML
  • xpath: XML Path Language implementation
  • xpathInternals: internal interfaces for XML Path Language implementation
  • xpointer: API to handle XML Pointers

Daniel Veillard

+ Reference Manual for libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

Reference Manual for libxml2

API Menu
API Indexes
Related links

Table of Contents

  • DOCBparser: old DocBook SGML parser
  • HTMLparser: interface for an HTML 4.0 non-verifying parser
  • HTMLtree: specific APIs to process HTML tree, especially serialization
  • SAX: Old SAX version 1 handler, deprecated
  • SAX2: SAX2 parser interface used to build the DOM tree
  • c14n: Provide Canonical XML and Exclusive XML Canonicalization
  • catalog: interfaces to the Catalog handling system
  • chvalid: Unicode character range checking
  • debugXML: Tree debugging APIs
  • dict: string dictionary
  • encoding: interface for the encoding conversion functions
  • entities: interface for the XML entities handling
  • globals: interface for all global variables of the library
  • hash: Chained hash tables
  • list: lists interfaces
  • nanoftp: minimal FTP implementation
  • nanohttp: minimal HTTP implementation
  • parser: the core parser module
  • parserInternals: internals routines and limits exported by the parser.
  • pattern: pattern expression handling
  • relaxng: implementation of the Relax-NG validation
  • schemasInternals: internal interfaces for XML Schemas
  • schematron: XML Schemastron implementation
  • threads: interfaces for thread handling
  • tree: interfaces for tree manipulation
  • uri: library of generic URI related routines
  • valid: The DTD validation
  • xinclude: implementation of XInclude
  • xlink: unfinished XLink detection module
  • xmlIO: interface for the I/O interfaces used by the parser
  • xmlautomata: API to build regexp automata
  • xmlerror: error handling
  • xmlexports: macros for marking symbols as exportable/importable.
  • xmlmemory: interface for the memory allocator
  • xmlmodule: dynamic module loading
  • xmlreader: the XMLReader implementation
  • xmlregexp: regular expressions handling
  • xmlsave: the XML document serializer
  • xmlschemas: incomplete XML Schemas structure implementation
  • xmlschemastypes: implementation of XML Schema Datatypes
  • xmlstring: set of routines to process strings
  • xmlunicode: Unicode character APIs
  • xmlversion: compile-time version information
  • xmlwriter: text writing API for XML
  • xpath: XML Path Language implementation
  • xpathInternals: internal interfaces for XML Path Language implementation
  • xpointer: API to handle XML Pointers

Daniel Veillard

diff --git a/doc/html/libxml-HTMLtree.html b/doc/html/libxml-HTMLtree.html index 1bbec8c4..8d990927 100644 --- a/doc/html/libxml-HTMLtree.html +++ b/doc/html/libxml-HTMLtree.html @@ -36,9 +36,9 @@ A:link, A:visited, A:active { text-decoration: underline }

Macro: HTML_TEXT_NODE

#define HTML_TEXT_NODE

Macro. A text node in a HTML document is really implemented the same way as a text node in an XML document.

Function: htmlDocContentDumpFormatOutput

void	htmlDocContentDumpFormatOutput	(xmlOutputBufferPtr buf, 
xmlDocPtr cur,
const char * encoding,
int format)

Dump an HTML document.

-
buf:the HTML buffer output
cur:the document
encoding:the encoding string
format:should formatting spaces been added

Function: htmlDocContentDumpOutput

void	htmlDocContentDumpOutput	(xmlOutputBufferPtr buf, 
xmlDocPtr cur,
const char * encoding)
+
buf:the HTML buffer output
cur:the document
encoding:the encoding string (unused)
format:should formatting spaces been added

Function: htmlDocContentDumpOutput

void	htmlDocContentDumpOutput	(xmlOutputBufferPtr buf, 
xmlDocPtr cur,
const char * encoding)

Dump an HTML document. Formatting return/spaces are added.

-
buf:the HTML buffer output
cur:the document
encoding:the encoding string

Function: htmlDocDump

int	htmlDocDump			(FILE * f, 
xmlDocPtr cur)
+
buf:the HTML buffer output
cur:the document
encoding:the encoding string (unused)

Function: htmlDocDump

int	htmlDocDump			(FILE * f, 
xmlDocPtr cur)

Dump an HTML document to an open FILE.

f:the FILE*
cur:the document
Returns:the number of byte written or -1 in case of failure.

Function: htmlDocDumpMemory

void	htmlDocDumpMemory		(xmlDocPtr cur, 
xmlChar ** mem,
int * size)

Dump an HTML document in memory and return the xmlChar * and it's size. It's up to the caller to free the memory.

@@ -60,9 +60,9 @@ A:link, A:visited, A:active { text-decoration: underline }

Dump an HTML node, recursive behaviour,children are printed too. TODO: if encoding == NULL try to save in the doc encoding

out:the FILE pointer
doc:the document
cur:the current node
encoding:the document encoding
format:should formatting spaces been added
Returns:the number of byte written or -1 in case of failure.

Function: htmlNodeDumpFormatOutput

void	htmlNodeDumpFormatOutput	(xmlOutputBufferPtr buf, 
xmlDocPtr doc,
xmlNodePtr cur,
const char * encoding,
int format)

Dump an HTML node, recursive behaviour,children are printed too.

-
buf:the HTML buffer output
doc:the document
cur:the current node
encoding:the encoding string
format:should formatting spaces been added

Function: htmlNodeDumpOutput

void	htmlNodeDumpOutput		(xmlOutputBufferPtr buf, 
xmlDocPtr doc,
xmlNodePtr cur,
const char * encoding)
+
buf:the HTML buffer output
doc:the document
cur:the current node
encoding:the encoding string (unused)
format:should formatting spaces been added

Function: htmlNodeDumpOutput

void	htmlNodeDumpOutput		(xmlOutputBufferPtr buf, 
xmlDocPtr doc,
xmlNodePtr cur,
const char * encoding)

Dump an HTML node, recursive behaviour,children are printed too, and formatting returns/spaces are added.

-
buf:the HTML buffer output
doc:the document
cur:the current node
encoding:the encoding string

Function: htmlSaveFile

int	htmlSaveFile			(const char * filename, 
xmlDocPtr cur)
+
buf:the HTML buffer output
doc:the document
cur:the current node
encoding:the encoding string (unused)

Function: htmlSaveFile

int	htmlSaveFile			(const char * filename, 
xmlDocPtr cur)

Dump an HTML document to a file. If @filename is "-" the stdout file is used.

filename:the filename (or URL)
cur:the document
Returns:the number of byte written or -1 in case of failure.

Function: htmlSaveFileEnc

int	htmlSaveFileEnc			(const char * filename, 
xmlDocPtr cur,
const char * encoding)

Dump an HTML document to a file using a given encoding and formatting returns/spaces are added.

diff --git a/doc/html/libxml-SAX2.html b/doc/html/libxml-SAX2.html index bdcb11dd..7a15a183 100644 --- a/doc/html/libxml-SAX2.html +++ b/doc/html/libxml-SAX2.html @@ -70,7 +70,7 @@ A:link, A:visited, A:active { text-decoration: underline }
ctx:the user data (XML parser context)

Function: xmlSAX2EndElement

void	xmlSAX2EndElement		(void * ctx, 
const xmlChar * name)

called when the end of an element has been detected.

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

Function: xmlSAX2EndElementNs

void	xmlSAX2EndElementNs		(void * ctx, 
const xmlChar * localname,
const xmlChar * prefix,
const xmlChar * URI)
-

SAX2 callback when an element end has been detected by the parser. It provides the namespace informations for the element.

+

SAX2 callback when an element end has been detected by the parser. It provides the namespace information for the element.

ctx:the user data (XML parser context)
localname:the local name of the element
prefix:the element namespace prefix if available
URI:the element namespace name if available

Function: xmlSAX2EntityDecl

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

An entity definition has been parsed

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: xmlSAX2ExternalSubset

void	xmlSAX2ExternalSubset		(void * ctx, 
const xmlChar * name,
const xmlChar * ExternalID,
const xmlChar * SystemID)
@@ -118,7 +118,7 @@ A:link, A:visited, A:active { text-decoration: underline }
ctx:the user data (XML parser context)

Function: xmlSAX2StartElement

void	xmlSAX2StartElement		(void * ctx, 
const xmlChar * fullname,
const xmlChar ** atts)

called when an opening tag has been processed.

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: xmlSAX2StartElementNs

void	xmlSAX2StartElementNs		(void * ctx, 
const xmlChar * localname,
const xmlChar * prefix,
const xmlChar * URI,
int nb_namespaces,
const xmlChar ** namespaces,
int nb_attributes,
int nb_defaulted,
const xmlChar ** attributes)
-

SAX2 callback when an element start has been detected by the parser. It provides the namespace informations for the element, as well as the new namespace declarations on the element.

+

SAX2 callback when an element start has been detected by the parser. It provides the namespace information for the element, as well as the new namespace declarations on the element.

ctx:the user data (XML parser context)
localname:the local name of the element
prefix:the element namespace prefix if available
URI:the element namespace name if available
nb_namespaces:number of namespace definitions on that node
namespaces:pointer to the array of prefix/URI pairs namespace definitions
nb_attributes:the number of attributes on that node
nb_defaulted:the number of defaulted attributes.
attributes:pointer to the array of (localname/prefix/URI/value/end) attribute values.

Function: xmlSAX2UnparsedEntityDecl

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

What to do when an unparsed entity declaration is parsed

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: xmlSAXDefaultVersion

int	xmlSAXDefaultVersion		(int version)
diff --git a/doc/html/libxml-debugXML.html b/doc/html/libxml-debugXML.html index 6b5f0e00..2a3fa5f7 100644 --- a/doc/html/libxml-debugXML.html +++ b/doc/html/libxml-debugXML.html @@ -78,7 +78,7 @@ char * xmlShellReadlineFunc (char * prompt)
output:the FILE * for the output
node:the node list
depth:the indentation level.

Function: xmlDebugDumpOneNode

void	xmlDebugDumpOneNode		(FILE * output, 
xmlNodePtr node,
int depth)

Dumps debug information for the element node, it is not recursive

output:the FILE * for the output
node:the node
depth:the indentation level.

Function: xmlDebugDumpString

void	xmlDebugDumpString		(FILE * output, 
const xmlChar * str)
-

Dumps informations about the string, shorten it if necessary

+

Dumps information about the string, shorten it if necessary

output:the FILE * for the output
str:the string

Function: xmlLsCountNode

int	xmlLsCountNode			(xmlNodePtr node)

Count the children of @node.

node:the node to count
Returns:the number of children of @node.

Function: xmlLsOneNode

void	xmlLsOneNode			(FILE * output, 
xmlNodePtr node)
@@ -93,7 +93,7 @@ char * xmlShellReadlineFunc (char * prompt) int xmlShellCmd (xmlShellCtxtPtr ctxt,
char * arg,
xmlNodePtr node,
xmlNodePtr node2)

This is a generic signature for the XML shell functions.

ctxt:a shell context
arg:a string argument
node:a first node
node2:a second node
Returns:an int, negative returns indicating errors.

Function: xmlShellDir

int	xmlShellDir			(xmlShellCtxtPtr ctxt, 
char * arg,
xmlNodePtr node,
xmlNodePtr node2)
-

Implements the XML shell function "dir" dumps informations about the node (namespace, attributes, content).

+

Implements the XML shell function "dir" dumps information about the node (namespace, attributes, content).

ctxt:the shell context
arg:unused
node:a node
node2:unused
Returns:0

Function: xmlShellDu

int	xmlShellDu			(xmlShellCtxtPtr ctxt, 
char * arg,
xmlNodePtr tree,
xmlNodePtr node2)

Implements the XML shell function "du" show the structure of the subtree under node @tree If @tree is null, the command works on the current node.

ctxt:the shell context
arg:unused
tree:a node defining a subtree
node2:unused
Returns:0 or -1 in case of error

Function: xmlShellList

int	xmlShellList			(xmlShellCtxtPtr ctxt, 
char * arg,
xmlNodePtr node,
xmlNodePtr node2)
diff --git a/doc/html/libxml-encoding.html b/doc/html/libxml-encoding.html index 03157641..e56ed399 100644 --- a/doc/html/libxml-encoding.html +++ b/doc/html/libxml-encoding.html @@ -83,9 +83,9 @@ int xmlCharEncodingOutputFunc (unsigned uconv_t * uconv_out }

Function: UTF8Toisolat1

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

Take a block of UTF-8 chars in and try to convert it to an ISO Latin 1 block of chars out.

-
out:a pointer to an array of bytes to store the result
outlen:the length of @out
in:a pointer to an array of UTF-8 chars
inlen:the length of @in
Returns:the number of bytes written if success, -2 if the transcoding fails, or -1 otherwise The value of @inlen after return is the number of octets consumed if the return value is positive, else unpredictable. The value of @outlen after return is the number of octets consumed.

Function: isolat1ToUTF8

int	isolat1ToUTF8			(unsigned char * out, 
int * outlen,
const unsigned char * in,
int * inlen)
+
out:a pointer to an array of bytes to store the result
outlen:the length of @out
in:a pointer to an array of UTF-8 chars
inlen:the length of @in
Returns:the number of bytes written if success, -2 if the transcoding fails, or -1 otherwise The value of @inlen after return is the number of octets consumed if the return value is positive, else unpredictable. The value of @outlen after return is the number of octets produced.

Function: isolat1ToUTF8

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

Take a block of ISO Latin 1 chars in and try to convert it to an UTF-8 block of chars out.

-
out:a pointer to an array of bytes to store the result
outlen:the length of @out
in:a pointer to an array of ISO Latin 1 chars
inlen:the length of @in
Returns:the number of bytes written if success, or -1 otherwise The value of @inlen after return is the number of octets consumed if the return value is positive, else unpredictable. The value of @outlen after return is the number of octets consumed.

Function: xmlAddEncodingAlias

int	xmlAddEncodingAlias		(const char * name, 
const char * alias)
+
out:a pointer to an array of bytes to store the result
outlen:the length of @out
in:a pointer to an array of ISO Latin 1 chars
inlen:the length of @in
Returns:the number of bytes written if success, or -1 otherwise The value of @inlen after return is the number of octets consumed if the return value is positive, else unpredictable. The value of @outlen after return is the number of octets produced.

Function: xmlAddEncodingAlias

int	xmlAddEncodingAlias		(const char * name, 
const char * alias)

Registers an alias @alias for an encoding named @name. Existing alias will be overwritten.

name:the encoding name as parsed, in UTF-8 format (ASCII actually)
alias:the alias name as parsed, in UTF-8 format (ASCII actually)
Returns:0 in case of success, -1 in case of error

Function: xmlCharEncCloseFunc

int	xmlCharEncCloseFunc		(xmlCharEncodingHandler * handler)

Generic front-end for encoding handler close function

diff --git a/doc/html/libxml-lib.html b/doc/html/libxml-lib.html index a8694937..56abee3a 100644 --- a/doc/html/libxml-lib.html +++ b/doc/html/libxml-lib.html @@ -10,4 +10,4 @@ A:link, A:visited, A:active { text-decoration: underline } Reference Manual for libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

Reference Manual for libxml2

API Menu
API Indexes
Related links

Table of Contents

  • DOCBparser: old DocBook SGML parser
  • HTMLparser: interface for an HTML 4.0 non-verifying parser
  • HTMLtree: specific APIs to process HTML tree, especially serialization
  • SAX: Old SAX version 1 handler, deprecated
  • SAX2: SAX2 parser interface used to build the DOM tree
  • c14n: Provide Canonical XML and Exclusive XML Canonicalization
  • catalog: interfaces to the Catalog handling system
  • chvalid: Unicode character range checking
  • debugXML: Tree debugging APIs
  • dict: string dictionary
  • encoding: interface for the encoding conversion functions
  • entities: interface for the XML entities handling
  • globals: interface for all global variables of the library
  • hash: Chained hash tables
  • list: lists interfaces
  • nanoftp: minimal FTP implementation
  • nanohttp: minimal HTTP implementation
  • parser: the core parser module
  • parserInternals: internals routines and limits exported by the parser.
  • pattern: pattern expression handling
  • relaxng: implementation of the Relax-NG validation
  • schemasInternals: internal interfaces for XML Schemas
  • schematron: XML Schemastron implementation
  • threads: interfaces for thread handling
  • tree: interfaces for tree manipulation
  • uri: library of generic URI related routines
  • valid: The DTD validation
  • xinclude: implementation of XInclude
  • xlink: unfinished XLink detection module
  • xmlIO: interface for the I/O interfaces used by the parser
  • xmlautomata: API to build regexp automata
  • xmlerror: error handling
  • xmlexports: macros for marking symbols as exportable/importable.
  • xmlmemory: interface for the memory allocator
  • xmlmodule: dynamic module loading
  • xmlreader: the XMLReader implementation
  • xmlregexp: regular expressions handling
  • xmlsave: the XML document serializer
  • xmlschemas: incomplete XML Schemas structure implementation
  • xmlschemastypes: implementation of XML Schema Datatypes
  • xmlstring: set of routines to process strings
  • xmlunicode: Unicode character APIs
  • xmlversion: compile-time version informations
  • xmlwriter: text writing API for XML
  • xpath: XML Path Language implementation
  • xpathInternals: internal interfaces for XML Path Language implementation
  • xpointer: API to handle XML Pointers

Daniel Veillard

+ Reference Manual for libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

Reference Manual for libxml2

API Menu
API Indexes
Related links

Table of Contents

  • DOCBparser: old DocBook SGML parser
  • HTMLparser: interface for an HTML 4.0 non-verifying parser
  • HTMLtree: specific APIs to process HTML tree, especially serialization
  • SAX: Old SAX version 1 handler, deprecated
  • SAX2: SAX2 parser interface used to build the DOM tree
  • c14n: Provide Canonical XML and Exclusive XML Canonicalization
  • catalog: interfaces to the Catalog handling system
  • chvalid: Unicode character range checking
  • debugXML: Tree debugging APIs
  • dict: string dictionary
  • encoding: interface for the encoding conversion functions
  • entities: interface for the XML entities handling
  • globals: interface for all global variables of the library
  • hash: Chained hash tables
  • list: lists interfaces
  • nanoftp: minimal FTP implementation
  • nanohttp: minimal HTTP implementation
  • parser: the core parser module
  • parserInternals: internals routines and limits exported by the parser.
  • pattern: pattern expression handling
  • relaxng: implementation of the Relax-NG validation
  • schemasInternals: internal interfaces for XML Schemas
  • schematron: XML Schemastron implementation
  • threads: interfaces for thread handling
  • tree: interfaces for tree manipulation
  • uri: library of generic URI related routines
  • valid: The DTD validation
  • xinclude: implementation of XInclude
  • xlink: unfinished XLink detection module
  • xmlIO: interface for the I/O interfaces used by the parser
  • xmlautomata: API to build regexp automata
  • xmlerror: error handling
  • xmlexports: macros for marking symbols as exportable/importable.
  • xmlmemory: interface for the memory allocator
  • xmlmodule: dynamic module loading
  • xmlreader: the XMLReader implementation
  • xmlregexp: regular expressions handling
  • xmlsave: the XML document serializer
  • xmlschemas: incomplete XML Schemas structure implementation
  • xmlschemastypes: implementation of XML Schema Datatypes
  • xmlstring: set of routines to process strings
  • xmlunicode: Unicode character APIs
  • xmlversion: compile-time version information
  • xmlwriter: text writing API for XML
  • xpath: XML Path Language implementation
  • xpathInternals: internal interfaces for XML Path Language implementation
  • xpointer: API to handle XML Pointers

Daniel Veillard

diff --git a/doc/html/libxml-nanoftp.html b/doc/html/libxml-nanoftp.html index 3e3ac628..d389630f 100644 --- a/doc/html/libxml-nanoftp.html +++ b/doc/html/libxml-nanoftp.html @@ -50,45 +50,45 @@ void ftpListCallback (void * userData,
const char * filename,
Function: xmlNanoFTPCheckResponse
int	xmlNanoFTPCheckResponse		(void * ctx)

Check if there is a response from the FTP server after a command.

ctx:an FTP context
Returns:the code number, or 0

Function: xmlNanoFTPCleanup

void	xmlNanoFTPCleanup		(void)
-

Cleanup the FTP protocol layer. This cleanup proxy informations.

+

Cleanup the FTP protocol layer. This cleanup proxy information.

Function: xmlNanoFTPClose

int	xmlNanoFTPClose			(void * ctx)

Close the connection and both control and transport

-
ctx:an FTP context
Returns:-1 incase of error, 0 otherwise

Function: xmlNanoFTPCloseConnection

int	xmlNanoFTPCloseConnection	(void * ctx)
+
ctx:an FTP context
Returns:-1 in case of error, 0 otherwise

Function: xmlNanoFTPCloseConnection

int	xmlNanoFTPCloseConnection	(void * ctx)

Close the data connection from the server

-
ctx:an FTP context
Returns:-1 incase of error, 0 otherwise

Function: xmlNanoFTPConnect

int	xmlNanoFTPConnect		(void * ctx)
+
ctx:an FTP context
Returns:-1 in case of error, 0 otherwise

Function: xmlNanoFTPConnect

int	xmlNanoFTPConnect		(void * ctx)

Tries to open a control connection

ctx:an FTP context
Returns:-1 in case of error, 0 otherwise

Function: xmlNanoFTPConnectTo

void *	xmlNanoFTPConnectTo		(const char * server, 
int port)

Tries to open a control connection to the given server/port

server:an FTP server name
port:the port (use 21 if 0)
Returns:an fTP context or NULL if it failed

Function: xmlNanoFTPCwd

int	xmlNanoFTPCwd			(void * ctx, 
const char * directory)

Tries to change the remote directory

-
ctx:an FTP context
directory:a directory on the server
Returns:-1 incase of error, 1 if CWD worked, 0 if it failed

Function: xmlNanoFTPDele

int	xmlNanoFTPDele			(void * ctx, 
const char * file)
+
ctx:an FTP context
directory:a directory on the server
Returns:-1 in case of error, 1 if CWD worked, 0 if it failed

Function: xmlNanoFTPDele

int	xmlNanoFTPDele			(void * ctx, 
const char * file)

Tries to delete an item (file or directory) from server

-
ctx:an FTP context
file:a file or directory on the server
Returns:-1 incase of error, 1 if DELE worked, 0 if it failed

Function: xmlNanoFTPFreeCtxt

void	xmlNanoFTPFreeCtxt		(void * ctx)
+
ctx:an FTP context
file:a file or directory on the server
Returns:-1 in case of error, 1 if DELE worked, 0 if it failed

Function: xmlNanoFTPFreeCtxt

void	xmlNanoFTPFreeCtxt		(void * ctx)

Frees the context after closing the connection.

ctx:an FTP context

Function: xmlNanoFTPGet

int	xmlNanoFTPGet			(void * ctx, 
ftpDataCallback callback,
void * userData,
const char * filename)

Fetch the given file from the server. All data are passed back in the callbacks. The last callback has a size of 0 block.

-
ctx:an FTP context
callback:the user callback
userData:the user callback data
filename:the file to retrieve
Returns:-1 incase of error, 0 otherwise

Function: xmlNanoFTPGetConnection

SOCKET	xmlNanoFTPGetConnection		(void * ctx)
+
ctx:an FTP context
callback:the user callback
userData:the user callback data
filename:the file to retrieve
Returns:-1 in case of error, 0 otherwise

Function: xmlNanoFTPGetConnection

SOCKET	xmlNanoFTPGetConnection		(void * ctx)

Try to open a data connection to the server. Currently only passive mode is supported.

-
ctx:an FTP context
Returns:-1 incase of error, 0 otherwise

Function: xmlNanoFTPGetResponse

int	xmlNanoFTPGetResponse		(void * ctx)
+
ctx:an FTP context
Returns:-1 in case of error, 0 otherwise

Function: xmlNanoFTPGetResponse

int	xmlNanoFTPGetResponse		(void * ctx)

Get the response from the FTP server after a command.

ctx:an FTP context
Returns:the code number

Function: xmlNanoFTPGetSocket

SOCKET	xmlNanoFTPGetSocket		(void * ctx, 
const char * filename)

Initiate fetch of the given file from the server.

ctx:an FTP context
filename:the file to retrieve (or NULL if path is in context).
Returns:the socket for the data connection, or <0 in case of error

Function: xmlNanoFTPInit

void	xmlNanoFTPInit			(void)
-

Initialize the FTP protocol layer. Currently it just checks for proxy informations, and get the hostname

+

Initialize the FTP protocol layer. Currently it just checks for proxy information, and get the hostname

Function: xmlNanoFTPList

int	xmlNanoFTPList			(void * ctx, 
ftpListCallback callback,
void * userData,
const char * filename)

Do a listing on the server. All files info are passed back in the callbacks.

-
ctx:an FTP context
callback:the user callback
userData:the user callback data
filename:optional files to list
Returns:-1 incase of error, 0 otherwise

Function: xmlNanoFTPNewCtxt

void *	xmlNanoFTPNewCtxt		(const char * URL)
+
ctx:an FTP context
callback:the user callback
userData:the user callback data
filename:optional files to list
Returns:-1 in case of error, 0 otherwise

Function: xmlNanoFTPNewCtxt

void *	xmlNanoFTPNewCtxt		(const char * URL)

Allocate and initialize a new FTP context.

URL:The URL used to initialize the context
Returns:an FTP context or NULL in case of error.

Function: xmlNanoFTPOpen

void *	xmlNanoFTPOpen			(const char * URL)

Start to fetch the given ftp:// resource

URL:the URL to the resource
Returns:an FTP context, or NULL

Function: xmlNanoFTPProxy

void	xmlNanoFTPProxy			(const char * host, 
int port,
const char * user,
const char * passwd,
int type)
-

Setup the FTP proxy informations. This can also be done by using ftp_proxy ftp_proxy_user and ftp_proxy_password environment variables.

+

Setup the FTP proxy information. This can also be done by using ftp_proxy ftp_proxy_user and ftp_proxy_password environment variables.

host:the proxy host name
port:the proxy port
user:the proxy user name
passwd:the proxy password
type:the type of proxy 1 for using SITE, 2 for USER a@b

Function: xmlNanoFTPQuit

int	xmlNanoFTPQuit			(void * ctx)

Send a QUIT command to the server

ctx:an FTP context
Returns:-1 in case of error, 0 otherwise

Function: xmlNanoFTPRead

int	xmlNanoFTPRead			(void * ctx, 
void * dest,
int len)

This function tries to read @len bytes from the existing FTP connection and saves them in @dest. This is a blocking call.

ctx:the FTP context
dest:a buffer
len:the buffer length
Returns:the number of byte read. 0 is an indication of an end of connection. -1 indicates a parameter error.

Function: xmlNanoFTPScanProxy

void	xmlNanoFTPScanProxy		(const char * URL)
-

(Re)Initialize the FTP Proxy context by parsing the URL and finding the protocol host port it indicates. Should be like ftp://myproxy/ or ftp://myproxy:3128/ A NULL URL cleans up proxy informations.

+

(Re)Initialize the FTP Proxy context by parsing the URL and finding the protocol host port it indicates. Should be like ftp://myproxy/ or ftp://myproxy:3128/ A NULL URL cleans up proxy information.

URL:The proxy URL used to initialize the proxy context

Function: xmlNanoFTPUpdateURL

int	xmlNanoFTPUpdateURL		(void * ctx, 
const char * URL)

Update an FTP context by parsing the URL and finding new path it indicates. If there is an error in the protocol, hostname, port or other information, the error is raised. It indicates a new connection has to be established.

ctx:an FTP context
URL:The URL used to update the context
Returns:0 if Ok, -1 in case of error (other host).

Daniel Veillard

diff --git a/doc/html/libxml-nanohttp.html b/doc/html/libxml-nanohttp.html index f507c142..28fcb20d 100644 --- a/doc/html/libxml-nanohttp.html +++ b/doc/html/libxml-nanohttp.html @@ -40,8 +40,8 @@ A:link, A:visited, A:active { text-decoration: underline }

Provides the specified encoding if specified in the HTTP headers.

ctx:the HTTP context
Returns:the specified encoding or NULL if not available

Function: xmlNanoHTTPFetch

int	xmlNanoHTTPFetch		(const char * URL, 
const char * filename,
char ** contentType)

This function try to fetch the indicated resource via HTTP GET and save it's content in the file.

-
URL:The URL to load
filename:the filename where the content should be saved
contentType:if available the Content-Type information will be returned at that location
Returns:-1 in case of failure, 0 incase of success. The contentType, if provided must be freed by the caller

Function: xmlNanoHTTPInit

void	xmlNanoHTTPInit			(void)
-

Initialize the HTTP protocol layer. Currently it just checks for proxy informations

+
URL:The URL to load
filename:the filename where the content should be saved
contentType:if available the Content-Type information will be returned at that location
Returns:-1 in case of failure, 0 in case of success. The contentType, if provided must be freed by the caller

Function: xmlNanoHTTPInit

void	xmlNanoHTTPInit			(void)
+

Initialize the HTTP protocol layer. Currently it just checks for proxy information

Function: xmlNanoHTTPMethod

void *	xmlNanoHTTPMethod		(const char * URL, 
const char * method,
const char * input,
char ** contentType,
const char * headers,
int ilen)

This function try to open a connection to the indicated resource via HTTP using the given @method, adding the given extra headers and the input buffer for the request content.

URL:The URL to load
method:the HTTP method to use
input:the input string if any
contentType:the Content-Type information IN and OUT
headers:the extra headers
ilen:input length
Returns:NULL in case of failure, otherwise a request handler. The contentType, if provided must be freed by the caller

Function: xmlNanoHTTPMethodRedir

void *	xmlNanoHTTPMethodRedir		(const char * URL, 
const char * method,
const char * input,
char ** contentType,
char ** redir,
const char * headers,
int ilen)
@@ -60,6 +60,6 @@ A:link, A:visited, A:active { text-decoration: underline }

Get the latest HTTP return code received

ctx:the HTTP context
Returns:the HTTP return code for the request.

Function: xmlNanoHTTPSave

int	xmlNanoHTTPSave			(void * ctxt, 
const char * filename)

This function saves the output of the HTTP transaction to a file It closes and free the context at the end

-
ctxt:the HTTP context
filename:the filename where the content should be saved
Returns:-1 in case of failure, 0 incase of success.

Function: xmlNanoHTTPScanProxy

void	xmlNanoHTTPScanProxy		(const char * URL)
-

(Re)Initialize the HTTP Proxy context by parsing the URL and finding the protocol host port it indicates. Should be like http://myproxy/ or http://myproxy:3128/ A NULL URL cleans up proxy informations.

+
ctxt:the HTTP context
filename:the filename where the content should be saved
Returns:-1 in case of failure, 0 in case of success.

Function: xmlNanoHTTPScanProxy

void	xmlNanoHTTPScanProxy		(const char * URL)
+

(Re)Initialize the HTTP Proxy context by parsing the URL and finding the protocol host port it indicates. Should be like http://myproxy/ or http://myproxy:3128/ A NULL URL cleans up proxy information.

URL:The proxy URL used to initialize the proxy context

Daniel Veillard

diff --git a/doc/html/libxml-parser.html b/doc/html/libxml-parser.html index d1c320e3..ea9ae265 100644 --- a/doc/html/libxml-parser.html +++ b/doc/html/libxml-parser.html @@ -20,6 +20,8 @@ A:link, A:visited, A:active { text-decoration: underline }
Enum xmlParserOption
 
Structure xmlSAXHandlerV1
struct _xmlSAXHandlerV1
Typedef xmlSAXHandlerV1 * xmlSAXHandlerV1Ptr
+
Structure xmlStartTag
struct _xmlStartTag +The content of this structure is not made public by the API.
Function type: attributeDeclSAXFunc
 void	attributeDeclSAXFunc		(void * ctx, 
const xmlChar * elem,
const xmlChar * fullname,
int type,
int def,
const xmlChar * defaultValue,
xmlEnumerationPtr tree)
@@ -320,6 +322,8 @@ void xmlParserInputDeallocate (cdataBlockSAXFunc cdataBlock externalSubsetSAXFunc externalSubset unsigned int initialized +}

Structure xmlStartTag

Structure xmlStartTag
struct _xmlStartTag { +The content of this structure is not made public by the API. }

Function type: attributeDeclSAXFunc

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

An attribute definition has been parsed.

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

@@ -343,7 +347,7 @@ void endDocumentSAXFunc (void * ctx)

Called when the document end has been detected.

ctx:the user data (XML parser context)

Function type: endElementNsSAX2Func

Function type: endElementNsSAX2Func
 void	endElementNsSAX2Func		(void * ctx, 
const xmlChar * localname,
const xmlChar * prefix,
const xmlChar * URI) -

SAX2 callback when an element end has been detected by the parser. It provides the namespace informations for the element.

ctx:the user data (XML parser context)
localname:the local name of the element
prefix:the element namespace prefix if available
URI:the element namespace name if available

+

SAX2 callback when an element end has been detected by the parser. It provides the namespace information for the element.

ctx:the user data (XML parser context)
localname:the local name of the element
prefix:the element namespace prefix if available
URI:the element namespace name if available

Function type: endElementSAXFunc

Function type: endElementSAXFunc
 void	endElementSAXFunc		(void * ctx, 
const xmlChar * name)

Called when the end of an element has been detected.

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

@@ -400,7 +404,7 @@ void startDocumentSAXFunc (void * ctx)

Called when the document start being processed.

ctx:the user data (XML parser context)

Function type: startElementNsSAX2Func

Function type: startElementNsSAX2Func
 void	startElementNsSAX2Func		(void * ctx, 
const xmlChar * localname,
const xmlChar * prefix,
const xmlChar * URI,
int nb_namespaces,
const xmlChar ** namespaces,
int nb_attributes,
int nb_defaulted,
const xmlChar ** attributes) -

SAX2 callback when an element start has been detected by the parser. It provides the namespace informations for the element, as well as the new namespace declarations on the element.

ctx:the user data (XML parser context)
localname:the local name of the element
prefix:the element namespace prefix if available
URI:the element namespace name if available
nb_namespaces:number of namespace definitions on that node
namespaces:pointer to the array of prefix/URI pairs namespace definitions
nb_attributes:the number of attributes on that node
nb_defaulted:the number of defaulted attributes. The defaulted ones are at the end of the array
attributes:pointer to the array of (localname/prefix/URI/value/end) attribute values.

+

SAX2 callback when an element start has been detected by the parser. It provides the namespace information for the element, as well as the new namespace declarations on the element.

ctx:the user data (XML parser context)
localname:the local name of the element
prefix:the element namespace prefix if available
URI:the element namespace name if available
nb_namespaces:number of namespace definitions on that node
namespaces:pointer to the array of prefix/URI pairs namespace definitions
nb_attributes:the number of attributes on that node
nb_defaulted:the number of defaulted attributes. The defaulted ones are at the end of the array
attributes:pointer to the array of (localname/prefix/URI/value/end) attribute values.

Function type: startElementSAXFunc

Function type: startElementSAXFunc
 void	startElementSAXFunc		(void * ctx, 
const xmlChar * name,
const xmlChar ** atts)

Called when an opening tag has been processed.

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

@@ -473,9 +477,9 @@ void warningSAXFunc (void * ctx,
const char * msg,
...

Allocate and initialize a new parser context.

Returns:the xmlParserCtxtPtr or NULL

Function: xmlParseBalancedChunkMemory

int	xmlParseBalancedChunkMemory	(xmlDocPtr doc, 
xmlSAXHandlerPtr sax,
void * user_data,
int depth,
const xmlChar * string,
xmlNodePtr * lst)

Parse a well-balanced chunk of an XML document called by the parser The allowed sequence for the Well Balanced Chunk is the one defined by the content production in the XML grammar: [43] content ::= (element | CharData | Reference | CDSect | PI | Comment)*

-
doc:the document the chunk pertains to
sax:the SAX handler bloc (possibly NULL)
user_data:The user data returned on SAX callbacks (possibly NULL)
depth:Used for loop detection, use 0
string:the input string in UTF8 or ISO-Latin (zero terminated)
lst:the return value for the set of parsed nodes
Returns:0 if the chunk is well balanced, -1 in case of args problem and the parser error code otherwise

Function: xmlParseBalancedChunkMemoryRecover

int	xmlParseBalancedChunkMemoryRecover	(xmlDocPtr doc, 
xmlSAXHandlerPtr sax,
void * user_data,
int depth,
const xmlChar * string,
xmlNodePtr * lst,
int recover)
+
doc:the document the chunk pertains to (must not be NULL)
sax:the SAX handler block (possibly NULL)
user_data:The user data returned on SAX callbacks (possibly NULL)
depth:Used for loop detection, use 0
string:the input string in UTF8 or ISO-Latin (zero terminated)
lst:the return value for the set of parsed nodes
Returns:0 if the chunk is well balanced, -1 in case of args problem and the parser error code otherwise

Function: xmlParseBalancedChunkMemoryRecover

int	xmlParseBalancedChunkMemoryRecover	(xmlDocPtr doc, 
xmlSAXHandlerPtr sax,
void * user_data,
int depth,
const xmlChar * string,
xmlNodePtr * lst,
int recover)

Parse a well-balanced chunk of an XML document called by the parser The allowed sequence for the Well Balanced Chunk is the one defined by the content production in the XML grammar: [43] content ::= (element | CharData | Reference | CDSect | PI | Comment)*

-
doc:the document the chunk pertains to
sax:the SAX handler bloc (possibly NULL)
user_data:The user data returned on SAX callbacks (possibly NULL)
depth:Used for loop detection, use 0
string:the input string in UTF8 or ISO-Latin (zero terminated)
lst:the return value for the set of parsed nodes
recover:return nodes even if the data is broken (use 0)
Returns:0 if the chunk is well balanced, -1 in case of args problem and the parser error code otherwise In case recover is set to 1, the nodelist will not be empty even if the parsed chunk is not well balanced, assuming the parsing succeeded to some extent.

Function: xmlParseChunk

int	xmlParseChunk			(xmlParserCtxtPtr ctxt, 
const char * chunk,
int size,
int terminate)
+
doc:the document the chunk pertains to (must not be NULL)
sax:the SAX handler block (possibly NULL)
user_data:The user data returned on SAX callbacks (possibly NULL)
depth:Used for loop detection, use 0
string:the input string in UTF8 or ISO-Latin (zero terminated)
lst:the return value for the set of parsed nodes
recover:return nodes even if the data is broken (use 0)
Returns:0 if the chunk is well balanced, -1 in case of args problem and the parser error code otherwise In case recover is set to 1, the nodelist will not be empty even if the parsed chunk is not well balanced, assuming the parsing succeeded to some extent.

Function: xmlParseChunk

int	xmlParseChunk			(xmlParserCtxtPtr 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: xmlParseCtxtExternalEntity

int	xmlParseCtxtExternalEntity	(xmlParserCtxtPtr ctx, 
const xmlChar * URL,
const xmlChar * ID,
xmlNodePtr * lst)

Parse an external general entity within an existing parsing context An external general parsed entity is well-formed if it matches the production labeled extParsedEnt. [78] extParsedEnt ::= TextDecl? content

@@ -491,7 +495,7 @@ void warningSAXFunc (void * ctx,
const char * msg,
...

parse a general parsed entity An external general parsed entity is well-formed if it matches the production labeled extParsedEnt. [78] extParsedEnt ::= TextDecl? content

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

Function: xmlParseExternalEntity

int	xmlParseExternalEntity		(xmlDocPtr doc, 
xmlSAXHandlerPtr sax,
void * user_data,
int depth,
const xmlChar * URL,
const xmlChar * ID,
xmlNodePtr * lst)

Parse an external general entity An external general parsed entity is well-formed if it matches the production labeled extParsedEnt. [78] extParsedEnt ::= TextDecl? content

-
doc:the document the chunk pertains to
sax:the SAX handler bloc (possibly NULL)
user_data:The user data returned on SAX callbacks (possibly NULL)
depth:Used for loop detection, use 0
URL:the URL for the entity to load
ID:the System ID for the entity to load
lst:the return value for the set of parsed nodes
Returns:0 if the entity is well formed, -1 in case of args problem and the parser error code otherwise

Function: xmlParseFile

xmlDocPtr	xmlParseFile		(const char * filename)
+
doc:the document the chunk pertains to
sax:the SAX handler block (possibly NULL)
user_data:The user data returned on SAX callbacks (possibly NULL)
depth:Used for loop detection, use 0
URL:the URL for the entity to load
ID:the System ID for the entity to load
lst:the return value for the set of parsed nodes
Returns:0 if the entity is well formed, -1 in case of args problem and the parser error code otherwise

Function: xmlParseFile

xmlDocPtr	xmlParseFile		(const char * filename)

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

filename:the filename
Returns:the resulting document tree if the file was wellformed, NULL otherwise.

Function: xmlParseInNodeContext

xmlParserErrors	xmlParseInNodeContext	(xmlNodePtr node, 
const char * data,
int datalen,
int options,
xmlNodePtr * lst)

Parse a well-balanced chunk of an XML document within the context (DTD, namespaces, etc ...) of the given node. The allowed sequence for the data is a Well Balanced Chunk defined by the content production in the XML grammar: [43] content ::= (element | CharData | Reference | CDSect | PI | Comment)*

diff --git a/doc/html/libxml-parserInternals.html b/doc/html/libxml-parserInternals.html index 357803e2..a56f142e 100644 --- a/doc/html/libxml-parserInternals.html +++ b/doc/html/libxml-parserInternals.html @@ -139,7 +139,7 @@ void xmlEntityReferenceFunc (Function: htmlCreateFileParserCtxt
htmlParserCtxtPtr	htmlCreateFileParserCtxt	(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:a free form C string describing the HTML document encoding, or NULL
Returns:the new parser context or NULL

Function: htmlInitAutoClose

void	htmlInitAutoClose		(void)
-

Initialize the htmlStartCloseIndex for fast lookup of closing tags names. This is not reentrant. Call xmlInitParser() once before processing in case of use in multithreaded programs.

+

This is a no-op now.

Function: inputPop

xmlParserInputPtr	inputPop	(xmlParserCtxtPtr ctxt)

Pops the top parser input from the input stack

ctxt:an XML parser context
Returns:the input just removed

Function: inputPush

int	inputPush			(xmlParserCtxtPtr ctxt, 
xmlParserInputPtr value)
@@ -175,7 +175,7 @@ void xmlEntityReferenceFunc (xmlEntityP

Callback function used when one needs to be able to track back the provenance of a chunk of nodes inherited from an entity replacement.

ent:the entity
firstNode:the fist node in the chunk
lastNode:the last nod in the chunk

Function: xmlErrMemory

void	xmlErrMemory			(xmlParserCtxtPtr ctxt, 
const char * extra)

Handle a redefinition of attribute error

-
ctxt:an XML parser context
extra:extra informations

Function: xmlFreeInputStream

void	xmlFreeInputStream		(xmlParserInputPtr input)
+
ctxt:an XML parser context
extra:extra information

Function: xmlFreeInputStream

void	xmlFreeInputStream		(xmlParserInputPtr input)

Free up an input stream.

Function: xmlHandleEntity

void	xmlHandleEntity			(xmlParserCtxtPtr ctxt, 
xmlEntityPtr entity)

Default handling of defined entities, when should we define a new input stream ? When do we just handle that as a set of chars ? OBSOLETE: to be removed at some point.

@@ -214,7 +214,7 @@ void xmlEntityReferenceFunc (xmlEntityP
ctxt:an XML parser context
Returns:the value parsed (as an int), 0 in case of error

Function: xmlParseComment

void	xmlParseComment			(xmlParserCtxtPtr ctxt)

Skip an XML (SGML) comment <!-- .... --> The spec says that "For compatibility, the string "--" (double-hyphen) must not occur within comments. " [15] Comment ::= '<!--' ((Char - '-') | ('-' (Char - '-')))* '-->'

ctxt:an XML parser context

Function: xmlParseContent

void	xmlParseContent			(xmlParserCtxtPtr ctxt)
-

Parse a content: [43] content ::= (element | CharData | Reference | CDSect | PI | Comment)*

+

Parse a content sequence. Stops at EOF or '</'. [43] content ::= (element | CharData | Reference | CDSect | PI | Comment)*

ctxt:an XML parser context

Function: xmlParseDefaultDecl

int	xmlParseDefaultDecl		(xmlParserCtxtPtr ctxt, 
xmlChar ** value)

Parse an attribute default declaration [60] DefaultDecl ::= '#REQUIRED' | '#IMPLIED' | (('#FIXED' S)? AttValue) [ VC: Required Attribute ] if the default declaration is the keyword #REQUIRED, then the attribute must be specified for all elements of the type in the attribute-list declaration. [ VC: Attribute Default Legal ] The declared default value must meet the lexical constraints of the declared attribute type c.f. xmlValidateAttributeDecl() [ VC: Fixed Attribute Default ] if an attribute has a default value declared with the #FIXED keyword, instances of that attribute must match the default value. [ WFC: No < in Attribute Values ] handled in xmlParseAttValue()

ctxt:an XML parser context
value:Receive a possible fixed default value for the attribute
Returns:XML_ATTRIBUTE_NONE, XML_ATTRIBUTE_REQUIRED, XML_ATTRIBUTE_IMPLIED or XML_ATTRIBUTE_FIXED.

Function: xmlParseDocTypeDecl

void	xmlParseDocTypeDecl		(xmlParserCtxtPtr ctxt)
diff --git a/doc/html/libxml-relaxng.html b/doc/html/libxml-relaxng.html index 28341106..a55c8978 100644 --- a/doc/html/libxml-relaxng.html +++ b/doc/html/libxml-relaxng.html @@ -120,7 +120,7 @@ The content of this structure is not made public by the API.
ctxt:the schema validation context

Function: xmlRelaxNGGetParserErrors

int	xmlRelaxNGGetParserErrors	(xmlRelaxNGParserCtxtPtr ctxt, 
xmlRelaxNGValidityErrorFunc * err,
xmlRelaxNGValidityWarningFunc * warn,
void ** ctx)

Get the callback information used to handle errors for a validation context

ctxt:a Relax-NG validation context
err:the error callback result
warn:the warning callback result
ctx:contextual data for the callbacks result
Returns:-1 in case of failure, 0 otherwise.

Function: xmlRelaxNGGetValidErrors

int	xmlRelaxNGGetValidErrors	(xmlRelaxNGValidCtxtPtr ctxt, 
xmlRelaxNGValidityErrorFunc * err,
xmlRelaxNGValidityWarningFunc * warn,
void ** ctx)
-

Get the error and warning callback informations

+

Get the error and warning callback information

ctxt:a Relax-NG validation context
err:the error function result
warn:the warning function result
ctx:the functions context result
Returns:-1 in case of error and 0 otherwise

Function: xmlRelaxNGInitTypes

int	xmlRelaxNGInitTypes		(void)

Initialize the default type libraries.

Returns:0 in case of success and -1 in case of error.

Function: xmlRelaxNGNewDocParserCtxt

xmlRelaxNGParserCtxtPtr	xmlRelaxNGNewDocParserCtxt	(xmlDocPtr doc)
@@ -138,7 +138,7 @@ The content of this structure is not made public by the API.
ctxt:a Relax-NG validation context
err:the error callback
warn:the warning callback
ctx:contextual data for the callbacks

Function: xmlRelaxNGSetParserStructuredErrors

void	xmlRelaxNGSetParserStructuredErrors	(xmlRelaxNGParserCtxtPtr ctxt, 
xmlStructuredErrorFunc serror,
void * ctx)

Set the callback functions used to handle errors for a parsing context

ctxt:a Relax-NG parser context
serror:the error callback
ctx:contextual data for the callbacks

Function: xmlRelaxNGSetValidErrors

void	xmlRelaxNGSetValidErrors	(xmlRelaxNGValidCtxtPtr ctxt, 
xmlRelaxNGValidityErrorFunc err,
xmlRelaxNGValidityWarningFunc warn,
void * ctx)
-

Set the error and warning callback informations

+

Set the error and warning callback information

ctxt:a Relax-NG validation context
err:the error function
warn:the warning function
ctx:the functions context

Function: xmlRelaxNGSetValidStructuredErrors

void	xmlRelaxNGSetValidStructuredErrors	(xmlRelaxNGValidCtxtPtr ctxt, 
xmlStructuredErrorFunc serror,
void * ctx)

Set the structured error callback

ctxt:a Relax-NG validation context
serror:the structured error function
ctx:the functions context

Function: xmlRelaxNGValidateDoc

int	xmlRelaxNGValidateDoc		(xmlRelaxNGValidCtxtPtr ctxt, 
xmlDocPtr doc)
@@ -158,5 +158,5 @@ void xmlRelaxNGValidityErrorFunc (void * ctx,
const char * msg,
const char * msg,
... ...)

Signature of a warning callback from a Relax-NG validation

ctx:the validation context
msg:the message
...:extra arguments

Function: xmlRelaxParserSetFlag

int	xmlRelaxParserSetFlag		(xmlRelaxNGParserCtxtPtr ctxt, 
int flags)
-

Semi private function used to pass informations to a parser context which are a combination of xmlRelaxNGParserFlag .

+

Semi private function used to pass information to a parser context which are a combination of xmlRelaxNGParserFlag .

ctxt:a RelaxNG parser context
flags:a set of flags values
Returns:0 if success and -1 in case of error

Daniel Veillard

diff --git a/doc/html/libxml-tree.html b/doc/html/libxml-tree.html index e78af7b1..d6120bc3 100644 --- a/doc/html/libxml-tree.html +++ b/doc/html/libxml-tree.html @@ -253,7 +253,7 @@ The content of this structure is not made public by the API. struct _xmlDoc * doc : the containing document xmlNs * ns : pointer to the associated namespace xmlAttributeType atype : the attribute type if validating - void * psvi : for type/PSVI informations + void * psvi : for type/PSVI information }

Structure xmlAttribute

Structure xmlAttribute
struct _xmlAttribute { void * _private : application data xmlElementType type : XML_ATTRIBUTE_DECL, must be second ! @@ -334,7 +334,7 @@ The content of this structure is not made public by the API. const xmlChar * URL : The URI for that document int charset : Internal flag for charset handling, act struct _xmlDict * dict : dict used to allocate names or NULL - void * psvi : for type/PSVI informations + void * psvi : for type/PSVI information int parseFlags : set of xmlParserOption used to parse th int properties : set of xmlDocProperties for this docume }

Enum xmlDocProperties

Enum xmlDocProperties {
@@ -474,7 +474,7 @@ The content of this structure is not made public by the API.
     xmlChar *	content	: the content
     struct _xmlAttr *	properties	: properties list
     xmlNs *	nsDef	: namespace definitions on this node
-    void *	psvi	: for type/PSVI informations
+    void *	psvi	: for type/PSVI information
     unsigned short	line	: line number
     unsigned short	extra	: extra data for XPath/XSLT
 }

Structure xmlNotation

Structure xmlNotation
struct _xmlNotation { @@ -531,7 +531,7 @@ The content of this structure is not made public by the API. int nameNr : Depth of the parsing stack int nameMax : Max depth of the parsing stack const xmlChar * * nameTab : array of nodes - long nbChars : number of xmlChar processed + long nbChars : unused long checkIndex : used by progressive parsing lookup int keepBlanks : ugly but ... int disableSAX : SAX callbacks are disabled @@ -567,7 +567,7 @@ The content of this structure is not made public by the API. int nsMax : the size of the arrays const xmlChar * * nsTab : the array of prefix/namespace name int * attallocs : which attribute were allocated - void * * pushTab : array of data for push + xmlStartTag * pushTab : array of data for push xmlHashTablePtr attsDefault : defaulted attributes if any xmlHashTablePtr attsSpecial : non-CDATA attributes if any int nsWellFormed : is the document XML Namespace okay @@ -576,7 +576,7 @@ The content of this structure is not made public by the API. int freeElemsNr : number of freed element nodes xmlNodePtr freeElems : List of freed element nodes int freeAttrsNr : number of freed attributes nodes - xmlAttrPtr freeAttrs : * the complete error informations for th + xmlAttrPtr freeAttrs : * the complete error information for the xmlError lastError xmlParserMode parseMode : the parser mode unsigned long nbentities : number of entities references @@ -851,7 +851,7 @@ The content of this structure is not made public by the API.
doc:the document
ns:namespace if any
name:the node name
content:the XML text content if any
Returns:a pointer to the new node object.

Function: xmlNewDocPI

xmlNodePtr	xmlNewDocPI		(xmlDocPtr doc, 
const xmlChar * name,
const xmlChar * content)

Creation of a processing instruction element.

doc:the target document
name:the processing instruction name
content:the PI content
Returns:a pointer to the new node object.

Function: xmlNewDocProp

xmlAttrPtr	xmlNewDocProp		(xmlDocPtr doc, 
const xmlChar * name,
const xmlChar * value)
-

Create a new property carried by a document.

+

Create a new property carried by a document. NOTE: @value is supposed to be a piece of XML CDATA, so it allows entity references, but XML special chars need to be escaped first by using xmlEncodeEntitiesReentrant(). Use xmlNewProp() if you don't need entities support.

doc:the document
name:the name of the attribute
value:the value of the attribute
Returns:a pointer to the attribute

Function: xmlNewDocRawNode

xmlNodePtr	xmlNewDocRawNode	(xmlDocPtr doc, 
xmlNsPtr ns,
const xmlChar * name,
const xmlChar * content)

Creation of a new node element within a document. @ns and @content are optional (NULL).

doc:the document
ns:namespace if any
name:the node name
content:the text content if any
Returns:a pointer to the new node object.

Function: xmlNewDocText

xmlNodePtr	xmlNewDocText		(const xmlDoc * doc, 
const xmlChar * content)
diff --git a/doc/html/libxml-xinclude.html b/doc/html/libxml-xinclude.html index 5fcf09bd..1da27747 100644 --- a/doc/html/libxml-xinclude.html +++ b/doc/html/libxml-xinclude.html @@ -47,7 +47,7 @@ The content of this structure is not made public by the API.
doc:an XML document
flags:a set of xmlParserOption used for parsing XML includes
Returns:0 if no substitution were done, -1 if some processing failed or the number of substitutions done.

Function: xmlXIncludeProcessFlagsData

int	xmlXIncludeProcessFlagsData	(xmlDocPtr doc, 
int flags,
void * data)

Implement the XInclude substitution on the XML document @doc

doc:an XML document
flags:a set of xmlParserOption used for parsing XML includes
data:application data that will be passed to the parser context in the _private field of the parser context(s)
Returns:0 if no substitution were done, -1 if some processing failed or the number of substitutions done.

Function: xmlXIncludeProcessNode

int	xmlXIncludeProcessNode		(xmlXIncludeCtxtPtr ctxt, 
xmlNodePtr node)
-

Implement the XInclude substitution for the given subtree reusing the informations and data coming from the given context.

+

Implement the XInclude substitution for the given subtree reusing the information and data coming from the given context.

ctxt:an existing XInclude context
node:a node in an XML document
Returns:0 if no substitution were done, -1 if some processing failed or the number of substitutions done.

Function: xmlXIncludeProcessTree

int	xmlXIncludeProcessTree		(xmlNodePtr tree)

Implement the XInclude substitution for the given subtree

tree:a node in an XML document
Returns:0 if no substitution were done, -1 if some processing failed or the number of substitutions done.

Function: xmlXIncludeProcessTreeFlags

int	xmlXIncludeProcessTreeFlags	(xmlNodePtr tree, 
int flags)
diff --git a/doc/html/libxml-xmlIO.html b/doc/html/libxml-xmlIO.html index a3118dfa..f3e57537 100644 --- a/doc/html/libxml-xmlIO.html +++ b/doc/html/libxml-xmlIO.html @@ -79,6 +79,7 @@ int xmlOutputWriteCallback (void * contex
int	xmlParserInputBufferPush	(xmlParserInputBufferPtr in, 
int len,
const char * buf)
int	xmlParserInputBufferRead	(xmlParserInputBufferPtr in, 
int len)
int	xmlPopInputCallbacks		(void)
+
int	xmlPopOutputCallbacks		(void)
void	xmlRegisterDefaultInputCallbacks	(void)
void	xmlRegisterDefaultOutputCallbacks	(void)
void	xmlRegisterHTTPPostCallbacks	(void)
@@ -199,7 +200,9 @@ int xmlOutputWriteCallback (void * context,
const char * buffer,

Refresh the content of the input buffer, the old data are considered consumed This routine handle the I18N transcoding to internal UTF-8

in:a buffered parser input
len:indicative value of the amount of chars to read
Returns:the number of chars read and stored in the buffer, or -1 in case of error.

Function: xmlPopInputCallbacks

int	xmlPopInputCallbacks		(void)

Clear the top input callback from the input stack. this includes the compiled-in I/O.

-
Returns:the number of input callback registered or -1 in case of error.

Function: xmlRegisterDefaultInputCallbacks

void	xmlRegisterDefaultInputCallbacks	(void)
+
Returns:the number of input callback registered or -1 in case of error.

Function: xmlPopOutputCallbacks

int	xmlPopOutputCallbacks		(void)
+

Remove the top output callbacks from the output stack. This includes the compiled-in I/O.

+
Returns:the number of output callback registered or -1 in case of error.

Function: xmlRegisterDefaultInputCallbacks

void	xmlRegisterDefaultInputCallbacks	(void)

Registers the default compiled-in I/O handlers.

Function: xmlRegisterDefaultOutputCallbacks

void	xmlRegisterDefaultOutputCallbacks	(void)

Registers the default compiled-in I/O handlers.

diff --git a/doc/html/libxml-xmlerror.html b/doc/html/libxml-xmlerror.html index 1b418a34..5858f639 100644 --- a/doc/html/libxml-xmlerror.html +++ b/doc/html/libxml-xmlerror.html @@ -844,7 +844,7 @@ void xmlGenericErrorFunc (void * ctx,
const char * msg,
ctx:an XML parser context
msg:the message to display/transmit
...:extra parameters for the message display

Function: xmlParserPrintFileContext

void	xmlParserPrintFileContext	(xmlParserInputPtr input)

Displays current context within the input content for error tracking

input:an xmlParserInputPtr input

Function: xmlParserPrintFileInfo

void	xmlParserPrintFileInfo		(xmlParserInputPtr input)
-

Displays the associated file and line informations for the current input

+

Displays the associated file and line information for the current input

input:an xmlParserInputPtr input

Function: xmlParserValidityError

void	xmlParserValidityError		(void * ctx, 
const char * msg,
... ...)

Display and format an validity error messages, gives file, line, position and extra parameters.

ctx:an XML parser context
msg:the message to display/transmit
...:extra parameters for the message display

Function: xmlParserValidityWarning

void	xmlParserValidityWarning	(void * ctx, 
const char * msg,
... ...)
diff --git a/doc/html/libxml-xmlexports.html b/doc/html/libxml-xmlexports.html index a5a4d752..a0f2aae0 100644 --- a/doc/html/libxml-xmlexports.html +++ b/doc/html/libxml-xmlexports.html @@ -10,10 +10,11 @@ A:link, A:visited, A:active { text-decoration: underline } Module xmlexports from libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

Module xmlexports from libxml2

API Menu
API Indexes
Related links

macros for marking symbols as exportable/importable.

Table of Contents

#define LIBXML_DLL_IMPORT
#define XMLCALL
#define XMLCDECL
#define XMLPUBFUN
#define XMLPUBVAR

Description

+ Module xmlexports from libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

Module xmlexports from libxml2

API Menu
API Indexes
Related links

macros for marking symbols as exportable/importable.

Table of Contents

#define LIBXML_DLL_IMPORT
#define XMLCALL
#define XMLCDECL
#define XMLPUBFUN
#define XMLPUBLIC
#define XMLPUBVAR

Description

Macro: LIBXML_DLL_IMPORT

#define LIBXML_DLL_IMPORT

-

Macro: XMLCALL

#define XMLCALL

-

Macro: XMLCDECL

#define XMLCDECL

-

Macro: XMLPUBFUN

#define XMLPUBFUN

-

Macro: XMLPUBVAR

#define XMLPUBVAR

+

Macro: XMLCALL

#define XMLCALL

Macro which declares the calling convention for exported functions

+

Macro: XMLCDECL

#define XMLCDECL

Macro which declares the calling convention for exported functions that use '...'.

+

Macro: XMLPUBFUN

#define XMLPUBFUN

Macro which declares an exportable function

+

Macro: XMLPUBLIC

#define XMLPUBLIC

Macro which declares a public symbol

+

Macro: XMLPUBVAR

#define XMLPUBVAR

Macro which declares an exportable variable

Daniel Veillard

diff --git a/doc/html/libxml-xmlreader.html b/doc/html/libxml-xmlreader.html index bb1debcc..138b6ae4 100644 --- a/doc/html/libxml-xmlreader.html +++ b/doc/html/libxml-xmlreader.html @@ -280,7 +280,7 @@ void xmlTextReaderErrorFunc (void * arg,
const char * msg,
reader:the xmlTextReaderPtr used
Returns:1 if the node was read successfully, 0 if there is no more nodes to read, or -1 in case of error

Function: xmlTextReaderNodeType

int	xmlTextReaderNodeType		(xmlTextReaderPtr reader)

Get the node type of the current node Reference: http://www.gnu.org/software/dotgnu/pnetlib-doc/System/Xml/XmlNodeType.html

reader:the xmlTextReaderPtr used
Returns:the xmlReaderTypes of the current node or -1 in case of error

Function: xmlTextReaderNormalization

int	xmlTextReaderNormalization	(xmlTextReaderPtr reader)
-

The value indicating whether to normalize white space and attribute values. Since attribute value and end of line normalizations are a MUST in the XML specification only the value true is accepted. The broken bahaviour of accepting out of range character entities like &#0; is of course not supported either.

+

The value indicating whether to normalize white space and attribute values. Since attribute value and end of line normalizations are a MUST in the XML specification only the value true is accepted. The broken behaviour of accepting out of range character entities like &#0; is of course not supported either.

reader:the xmlTextReaderPtr used
Returns:1 or -1 in case of error.

Function: xmlTextReaderPrefix

xmlChar *	xmlTextReaderPrefix	(xmlTextReaderPtr reader)

A shorthand reference to the namespace associated with the node.

reader:the xmlTextReaderPtr used
Returns:the prefix or NULL if not available, if non NULL it need to be freed by the caller.

Function: xmlTextReaderPreserve

xmlNodePtr	xmlTextReaderPreserve	(xmlTextReaderPtr reader)
diff --git a/doc/html/libxml-xmlregexp.html b/doc/html/libxml-xmlregexp.html index 99b7636f..7300e5ba 100644 --- a/doc/html/libxml-xmlregexp.html +++ b/doc/html/libxml-xmlregexp.html @@ -119,9 +119,9 @@ The content of this structure is not made public by the API. void xmlRegExecCallbacks (xmlRegExecCtxtPtr exec,
const xmlChar * token,
void * transdata,
void * inputdata)

Callback function when doing a transition in the automata

exec:the regular expression context
token:the current token string
transdata:transition data
inputdata:input data

Function: xmlRegExecErrInfo

int	xmlRegExecErrInfo		(xmlRegExecCtxtPtr exec, 
const xmlChar ** string,
int * nbval,
int * nbneg,
xmlChar ** values,
int * terminal)
-

Extract error informations from the regexp execution, the parameter @string will be updated with the value pushed and not accepted, the parameter @values must point to an array of @nbval string pointers on return nbval will contain the number of possible strings in that state and the @values array will be updated with them. The string values

+

Extract error information from the regexp execution, the parameter @string will be updated with the value pushed and not accepted, the parameter @values must point to an array of @nbval string pointers on return nbval will contain the number of possible strings in that state and the @values array will be updated with them. The string values

exec:a regexp execution context generating an error
string:return value for the error string
nbval:pointer to the number of accepted values IN/OUT
nbneg:return number of negative transitions
values:pointer to the array of acceptable values
terminal:return value if this was a terminal state
Returns:will be freed with the @exec context and don't need to be deallocated. Returns: 0 in case of success or -1 in case of error.

Function: xmlRegExecNextValues

int	xmlRegExecNextValues		(xmlRegExecCtxtPtr exec, 
int * nbval,
int * nbneg,
xmlChar ** values,
int * terminal)
-

Extract informations from the regexp execution, the parameter @values must point to an array of @nbval string pointers on return nbval will contain the number of possible strings in that state and the @values array will be updated with them. The string values

+

Extract information from the regexp execution, the parameter @values must point to an array of @nbval string pointers on return nbval will contain the number of possible strings in that state and the @values array will be updated with them. The string values

exec:a regexp execution context
nbval:pointer to the number of accepted values IN/OUT
nbneg:return number of negative transitions
values:pointer to the array of acceptable values
terminal:return value if this was a terminal state
Returns:will be freed with the @exec context and don't need to be deallocated. Returns: 0 in case of success or -1 in case of error.

Function: xmlRegExecPushString

int	xmlRegExecPushString		(xmlRegExecCtxtPtr exec, 
const xmlChar * value,
void * data)

Push one input token in the execution context

exec:a regexp execution context or NULL to indicate the end
value:a string token input
data:data associated to the token to reuse in callbacks
Returns:1 if the regexp reached a final state, 0 if non-final, and a negative value in case of error.

Function: xmlRegExecPushString2

int	xmlRegExecPushString2		(xmlRegExecCtxtPtr exec, 
const xmlChar * value,
const xmlChar * value2,
void * data)
diff --git a/doc/html/libxml-xmlsave.html b/doc/html/libxml-xmlsave.html index c3bea9fb..24350007 100644 --- a/doc/html/libxml-xmlsave.html +++ b/doc/html/libxml-xmlsave.html @@ -23,7 +23,7 @@ The content of this structure is not made public by the API.
xmlSaveCtxtPtr	xmlSaveToFd		(int fd, 
const char * encoding,
int options)
xmlSaveCtxtPtr	xmlSaveToFilename	(const char * filename, 
const char * encoding,
int options)
xmlSaveCtxtPtr	xmlSaveToIO		(xmlOutputWriteCallback iowrite, 
xmlOutputCloseCallback ioclose,
void * ioctx,
const char * encoding,
int options)
-
long	xmlSaveTree			(xmlSaveCtxtPtr ctxt, 
xmlNodePtr node)
+
long	xmlSaveTree			(xmlSaveCtxtPtr ctxt, 
xmlNodePtr cur)

Description

Structure xmlSaveCtxt

Structure xmlSaveCtxt
struct _xmlSaveCtxt { The content of this structure is not made public by the API. @@ -55,6 +55,6 @@ The content of this structure is not made public by the API.

Create a document saving context serializing to a filename or possibly to an URL (but this is less reliable) with the encoding and the options given.

filename:a file name or an URL
encoding:the encoding name to use or NULL
options:a set of xmlSaveOptions
Returns:a new serialization context or NULL in case of error.

Function: xmlSaveToIO

xmlSaveCtxtPtr	xmlSaveToIO		(xmlOutputWriteCallback iowrite, 
xmlOutputCloseCallback ioclose,
void * ioctx,
const char * encoding,
int options)

Create a document saving context serializing to a file descriptor with the encoding and the options given

-
iowrite:an I/O write function
ioclose:an I/O close function
ioctx:an I/O handler
encoding:the encoding name to use or NULL
options:a set of xmlSaveOptions
Returns:a new serialization context or NULL in case of error.

Function: xmlSaveTree

long	xmlSaveTree			(xmlSaveCtxtPtr ctxt, 
xmlNodePtr node)
+
iowrite:an I/O write function
ioclose:an I/O close function
ioctx:an I/O handler
encoding:the encoding name to use or NULL
options:a set of xmlSaveOptions
Returns:a new serialization context or NULL in case of error.

Function: xmlSaveTree

long	xmlSaveTree			(xmlSaveCtxtPtr ctxt, 
xmlNodePtr cur)

Save a subtree starting at the node parameter to a saving context TODO: The function is not fully implemented yet as it does not return the byte count but 0 instead

-
ctxt:a document saving context
node:the top node of the subtree to save
Returns:the number of byte written or -1 in case of error

Daniel Veillard

+
ctxt:a document saving context
cur:
Returns:the number of byte written or -1 in case of error

Daniel Veillard

diff --git a/doc/html/libxml-xmlschemas.html b/doc/html/libxml-xmlschemas.html index 3729afb8..5f2e1df5 100644 --- a/doc/html/libxml-xmlschemas.html +++ b/doc/html/libxml-xmlschemas.html @@ -130,7 +130,7 @@ The content of this structure is not made public by the API.
ctxt:the schema validation context

Function: xmlSchemaGetParserErrors

int	xmlSchemaGetParserErrors	(xmlSchemaParserCtxtPtr ctxt, 
xmlSchemaValidityErrorFunc * err,
xmlSchemaValidityWarningFunc * warn,
void ** ctx)

Get the callback information used to handle errors for a parser context

ctxt:a XMl-Schema parser context
err:the error callback result
warn:the warning callback result
ctx:contextual data for the callbacks result
Returns:-1 in case of failure, 0 otherwise

Function: xmlSchemaGetValidErrors

int	xmlSchemaGetValidErrors		(xmlSchemaValidCtxtPtr ctxt, 
xmlSchemaValidityErrorFunc * err,
xmlSchemaValidityWarningFunc * warn,
void ** ctx)
-

Get the error and warning callback informations

+

Get the error and warning callback information

ctxt:a XML-Schema validation context
err:the error function result
warn:the warning function result
ctx:the functions context result
Returns:-1 in case of error and 0 otherwise

Function: xmlSchemaIsValid

int	xmlSchemaIsValid		(xmlSchemaValidCtxtPtr ctxt)

Check if any error was detected during validation.

ctxt:the schema validation context
Returns:1 if valid so far, 0 if errors were detected, and -1 in case of internal error.

Function: xmlSchemaNewDocParserCtxt

xmlSchemaParserCtxtPtr	xmlSchemaNewDocParserCtxt	(xmlDocPtr doc)
@@ -152,7 +152,7 @@ The content of this structure is not made public by the API.
ctxt:a schema validation context
err:the error callback
warn:the warning callback
ctx:contextual data for the callbacks

Function: xmlSchemaSetParserStructuredErrors

void	xmlSchemaSetParserStructuredErrors	(xmlSchemaParserCtxtPtr ctxt, 
xmlStructuredErrorFunc serror,
void * ctx)

Set the structured error callback

ctxt:a schema parser context
serror:the structured error function
ctx:the functions context

Function: xmlSchemaSetValidErrors

void	xmlSchemaSetValidErrors		(xmlSchemaValidCtxtPtr ctxt, 
xmlSchemaValidityErrorFunc err,
xmlSchemaValidityWarningFunc warn,
void * ctx)
-

Set the error and warning callback informations

+

Set the error and warning callback information

ctxt:a schema validation context
err:the error function
warn:the warning function
ctx:the functions context

Function: xmlSchemaSetValidOptions

int	xmlSchemaSetValidOptions	(xmlSchemaValidCtxtPtr ctxt, 
int options)

Sets the options to be used during the validation.

ctxt:a schema validation context
options:a combination of xmlSchemaValidOption
Returns:0 in case of success, -1 in case of an API error.

Function: xmlSchemaSetValidStructuredErrors

void	xmlSchemaSetValidStructuredErrors	(xmlSchemaValidCtxtPtr ctxt, 
xmlStructuredErrorFunc serror,
void * ctx)
@@ -178,7 +178,7 @@ void xmlSchemaValidityErrorFunc (void * ctx,
const char * msg,

Signature of an error callback from an XSD validation

ctx:the validation context
msg:the message
...:extra arguments

Function type: xmlSchemaValidityLocatorFunc

Function type: xmlSchemaValidityLocatorFunc
 int	xmlSchemaValidityLocatorFunc	(void * ctx, 
const char ** file,
unsigned long * line) -

A schemas validation locator, a callback called by the validator. This is used when file or node informations are not available to find out what file and line number are affected

ctx:user provided context
file:returned file information
line:returned line information
Returns:0 in case of success and -1 in case of error

+

A schemas validation locator, a callback called by the validator. This is used when file or node information are not available to find out what file and line number are affected

ctx:user provided context
file:returned file information
line:returned line information
Returns:0 in case of success and -1 in case of error

Function type: xmlSchemaValidityWarningFunc

Function type: xmlSchemaValidityWarningFunc
 void	xmlSchemaValidityWarningFunc	(void * ctx, 
const char * msg,
... ...)

Signature of a warning callback from an XSD validation

ctx:the validation context
msg:the message
...:extra arguments

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

Module xmlversion from libxml2

API Menu
API Indexes
Related links

compile-time version informations for the XML library

Table of Contents

#define ATTRIBUTE_UNUSED
#define DEBUG_MEMORY_LOCATION
#define LIBXML_ATTR_ALLOC_SIZE
#define LIBXML_ATTR_FORMAT
#define LIBXML_AUTOMATA_ENABLED
#define LIBXML_C14N_ENABLED
#define LIBXML_CATALOG_ENABLED
#define LIBXML_DEBUG_ENABLED
#define LIBXML_DEBUG_RUNTIME
#define LIBXML_DOCB_ENABLED
#define LIBXML_DOTTED_VERSION
#define LIBXML_EXPR_ENABLED
#define LIBXML_FTP_ENABLED
#define LIBXML_HTML_ENABLED
#define LIBXML_HTTP_ENABLED
#define LIBXML_ICONV_ENABLED
#define LIBXML_ICU_ENABLED
#define LIBXML_ISO8859X_ENABLED
#define LIBXML_LEGACY_ENABLED
#define LIBXML_LZMA_ENABLED
#define LIBXML_MODULES_ENABLED
#define LIBXML_MODULE_EXTENSION
#define LIBXML_OUTPUT_ENABLED
#define LIBXML_PATTERN_ENABLED
#define LIBXML_PUSH_ENABLED
#define LIBXML_READER_ENABLED
#define LIBXML_REGEXP_ENABLED
#define LIBXML_SAX1_ENABLED
#define LIBXML_SCHEMAS_ENABLED
#define LIBXML_SCHEMATRON_ENABLED
#define LIBXML_TEST_VERSION
#define LIBXML_THREAD_ALLOC_ENABLED
#define LIBXML_THREAD_ENABLED
#define LIBXML_TREE_ENABLED
#define LIBXML_UNICODE_ENABLED
#define LIBXML_VALID_ENABLED
#define LIBXML_VERSION
#define LIBXML_VERSION_EXTRA
#define LIBXML_VERSION_STRING
#define LIBXML_WRITER_ENABLED
#define LIBXML_XINCLUDE_ENABLED
#define LIBXML_XPATH_ENABLED
#define LIBXML_XPTR_ENABLED
#define LIBXML_ZLIB_ENABLED
#define WITHOUT_TRIO
#define WITH_TRIO
void	xmlCheckVersion			(int version)
+ Module xmlversion from libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

Module xmlversion from libxml2

API Menu
API Indexes
Related links

compile-time version information for the XML library

Table of Contents

#define ATTRIBUTE_UNUSED
#define DEBUG_MEMORY_LOCATION
#define LIBXML_ATTR_ALLOC_SIZE
#define LIBXML_ATTR_FORMAT
#define LIBXML_AUTOMATA_ENABLED
#define LIBXML_C14N_ENABLED
#define LIBXML_CATALOG_ENABLED
#define LIBXML_DEBUG_ENABLED
#define LIBXML_DEBUG_RUNTIME
#define LIBXML_DOCB_ENABLED
#define LIBXML_DOTTED_VERSION
#define LIBXML_EXPR_ENABLED
#define LIBXML_FTP_ENABLED
#define LIBXML_HTML_ENABLED
#define LIBXML_HTTP_ENABLED
#define LIBXML_ICONV_ENABLED
#define LIBXML_ICU_ENABLED
#define LIBXML_ISO8859X_ENABLED
#define LIBXML_LEGACY_ENABLED
#define LIBXML_LZMA_ENABLED
#define LIBXML_MODULES_ENABLED
#define LIBXML_MODULE_EXTENSION
#define LIBXML_OUTPUT_ENABLED
#define LIBXML_PATTERN_ENABLED
#define LIBXML_PUSH_ENABLED
#define LIBXML_READER_ENABLED
#define LIBXML_REGEXP_ENABLED
#define LIBXML_SAX1_ENABLED
#define LIBXML_SCHEMAS_ENABLED
#define LIBXML_SCHEMATRON_ENABLED
#define LIBXML_TEST_VERSION
#define LIBXML_THREAD_ALLOC_ENABLED
#define LIBXML_THREAD_ENABLED
#define LIBXML_TREE_ENABLED
#define LIBXML_UNICODE_ENABLED
#define LIBXML_VALID_ENABLED
#define LIBXML_VERSION
#define LIBXML_VERSION_EXTRA
#define LIBXML_VERSION_STRING
#define LIBXML_WRITER_ENABLED
#define LIBXML_XINCLUDE_ENABLED
#define LIBXML_XPATH_ENABLED
#define LIBXML_XPTR_ENABLED
#define LIBXML_ZLIB_ENABLED
#define WITHOUT_TRIO
#define WITH_TRIO
void	xmlCheckVersion			(int version)

Description

Macro: ATTRIBUTE_UNUSED

#define ATTRIBUTE_UNUSED

Macro used to signal to GCC unused function parameters

Macro: DEBUG_MEMORY_LOCATION

#define DEBUG_MEMORY_LOCATION

Whether the memory debugging is configured in

diff --git a/doc/html/libxml-xpath.html b/doc/html/libxml-xpath.html index 5bdd564b..78203078 100644 --- a/doc/html/libxml-xpath.html +++ b/doc/html/libxml-xpath.html @@ -147,8 +147,6 @@ The content of this structure is not made public by the API. unsigned long opLimit unsigned long opCount int depth - int maxDepth - int maxParserDepth }

Enum xmlXPathError

Enum xmlXPathError {
     XPATH_EXPRESSION_OK = 0
     XPATH_NUMBER_ERROR = 1
diff --git a/doc/libxml2-api.xml b/doc/libxml2-api.xml
index f264a298..c31b6a76 100644
--- a/doc/libxml2-api.xml
+++ b/doc/libxml2-api.xml
@@ -771,6 +771,7 @@
      
      
      
+     
      
      
      
@@ -1905,6 +1906,7 @@
      
      
      
+     
      
      
      
@@ -2788,12 +2790,12 @@
     
      macros for marking symbols as exportable/importable.
      macros for marking symbols as exportable/importable. 
-     Igor Zlatovic <igor@zlatkovic.com> 
-     
-     
      
-     
+     
+     
      
+     
+     
     
     
      interface for the memory allocator
@@ -3378,8 +3380,8 @@
      
     
     
-     compile-time version informations
-     compile-time version informations for the XML library 
+     compile-time version information
+     compile-time version information for the XML library 
      Daniel Veillard 
      
      
@@ -4148,12 +4150,19 @@
       Macro defining "xpointer"
     
     
+      Macro which declares the calling convention for exported functions
     
     
+      Macro which declares the calling convention for exported functions that use '...'.
     
     
+      Macro which declares an exportable function
+    
+    
+      Macro which declares a public symbol
     
     
+      Macro which declares an exportable variable
     
     
       Macro to do a casting from an object pointer to a function pointer without encountering a warning from gcc  #define XML_CAST_FPTR(fptr) (*(void **)(&fptr)) This macro violated ISO C aliasing rules (gcc4 on s390 broke) so it is disabled now
@@ -5994,7 +6003,7 @@ if necessary or NULL'/>
       
       
       
-      
+      
     
     
     
@@ -6119,7 +6128,7 @@ standalone attribute was specified'/>
       
       
-      
+      
       
       
       
       
       
-      
+      
       
       
     
@@ -6393,7 +6402,7 @@ set at the end of parsing'/>
       
       
       
-      
+      
       
       
       
@@ -6432,7 +6441,7 @@ actually an xmlCharEncoding'/>
       
       
       
-      
+      
       
       
       
@@ -6442,7 +6451,7 @@ actually an xmlCharEncoding'/>
       
       
       
-      
       
       
@@ -6836,6 +6845,7 @@ Could we use @subtypes for this?'/>
       
     
     
+    
     
     
     
@@ -6935,8 +6945,6 @@ Could we use @subtypes for this?'/>
       
       
       
-      
-      
     
     
     
@@ -7044,7 +7052,7 @@ Could we use @subtypes for this?'/>
     
       defined(LIBXML_OUTPUT_ENABLED)
       Take a block of UTF-8 chars in and try to convert it to an ISO Latin 1 block of chars out.
-      
+      
       
       
       
@@ -7260,7 +7268,7 @@ Could we use @subtypes for this?'/>
       
     
     
-      SAX2 callback when an element end has been detected by the parser. It provides the namespace informations for the element.
+      SAX2 callback when an element end has been detected by the parser. It provides the namespace information for the element.
       
       
       
@@ -7553,7 +7561,7 @@ Could we use @subtypes for this?'/>
       
       
       
-      
+      
       
     
     
@@ -7562,7 +7570,7 @@ Could we use @subtypes for this?'/>
       
       
       
-      
+      
     
     
       defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
@@ -7644,7 +7652,7 @@ Could we use @subtypes for this?'/>
     
     
       defined(LIBXML_HTML_ENABLED)
-      Initialize the htmlStartCloseIndex for fast lookup of closing tags names. This is not reentrant. Call xmlInitParser() once before processing in case of use in multithreaded programs.
+      This is a no-op now.
       
     
     
@@ -7718,7 +7726,7 @@ Could we use @subtypes for this?'/>
       
       
       
-      
+      
       
     
     
@@ -7728,7 +7736,7 @@ Could we use @subtypes for this?'/>
       
       
       
-      
+      
     
     
       defined(LIBXML_HTML_ENABLED)
@@ -7967,7 +7975,7 @@ Could we use @subtypes for this?'/>
     
     
       Take a block of ISO Latin 1 chars in and try to convert it to an UTF-8 block of chars out.
-      
+      
       
       
       
@@ -8103,7 +8111,7 @@ Could we use @subtypes for this?'/>
       
     
     
-      SAX2 callback when an element start has been detected by the parser. It provides the namespace informations for the element, as well as the new namespace declarations on the element.
+      SAX2 callback when an element start has been detected by the parser. It provides the namespace information for the element, as well as the new namespace declarations on the element.
       
       
       
@@ -9470,7 +9478,7 @@ Could we use @subtypes for this?'/>
     
     
       defined(LIBXML_DEBUG_ENABLED)
-      Dumps informations about the string, shorten it if necessary
+      Dumps information about the string, shorten it if necessary
       
       
       
@@ -9755,7 +9763,7 @@ Could we use @subtypes for this?'/>
       Handle a redefinition of attribute error
       
       
-      
+      
     
     
       defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_EXPR_ENABLED)
@@ -11157,19 +11165,19 @@ Could we use @subtypes for this?'/>
     
     
       defined(LIBXML_FTP_ENABLED)
-      Cleanup the FTP protocol layer. This cleanup proxy informations.
+      Cleanup the FTP protocol layer. This cleanup proxy information.
       
     
     
       defined(LIBXML_FTP_ENABLED)
       Close the connection and both control and transport
-      
+      
       
     
     
       defined(LIBXML_FTP_ENABLED)
       Close the data connection from the server
-      
+      
       
     
     
@@ -11188,14 +11196,14 @@ Could we use @subtypes for this?'/>
     
       defined(LIBXML_FTP_ENABLED)
       Tries to change the remote directory
-      
+      
       
       
     
     
       defined(LIBXML_FTP_ENABLED)
       Tries to delete an item (file or directory) from server
-      
+      
       
       
     
@@ -11208,7 +11216,7 @@ Could we use @subtypes for this?'/>
     
       defined(LIBXML_FTP_ENABLED)
       Fetch the given file from the server. All data are passed back in the callbacks. The last callback has a size of 0 block.
-      
+      
       
       
       
@@ -11217,7 +11225,7 @@ Could we use @subtypes for this?'/>
     
       defined(LIBXML_FTP_ENABLED)
       Try to open a data connection to the server. Currently only passive mode is supported.
-      
+      
       
     
     
@@ -11235,13 +11243,13 @@ Could we use @subtypes for this?'/>
     
     
       defined(LIBXML_FTP_ENABLED)
-      Initialize the FTP protocol layer. Currently it just checks for proxy informations, and get the hostname
+      Initialize the FTP protocol layer. Currently it just checks for proxy information, and get the hostname
       
     
     
       defined(LIBXML_FTP_ENABLED)
       Do a listing on the server. All files info are passed back in the callbacks.
-      
+      
       
       
       
@@ -11261,7 +11269,7 @@ Could we use @subtypes for this?'/>
     
     
       defined(LIBXML_FTP_ENABLED)
-      Setup the FTP proxy informations. This can also be done by using ftp_proxy ftp_proxy_user and ftp_proxy_password environment variables.
+      Setup the FTP proxy information. This can also be done by using ftp_proxy ftp_proxy_user and ftp_proxy_password environment variables.
       
       
       
@@ -11285,7 +11293,7 @@ Could we use @subtypes for this?'/>
     
     
       defined(LIBXML_FTP_ENABLED)
-      (Re)Initialize the FTP Proxy context by parsing the URL and finding the protocol host port it indicates. Should be like ftp://myproxy/ or ftp://myproxy:3128/ A NULL URL cleans up proxy informations.
+      (Re)Initialize the FTP Proxy context by parsing the URL and finding the protocol host port it indicates. Should be like ftp://myproxy/ or ftp://myproxy:3128/ A NULL URL cleans up proxy information.
       
       
     
@@ -11328,14 +11336,14 @@ Could we use @subtypes for this?'/>
     
       defined(LIBXML_HTTP_ENABLED)
       This function try to fetch the indicated resource via HTTP GET and save it's content in the file.
-      
+      
       
       
       
     
     
       defined(LIBXML_HTTP_ENABLED)
-      Initialize the HTTP protocol layer. Currently it just checks for proxy informations
+      Initialize the HTTP protocol layer. Currently it just checks for proxy information
       
     
     
@@ -11405,13 +11413,13 @@ Could we use @subtypes for this?'/>
     
       defined(LIBXML_HTTP_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
       This function saves the output of the HTTP transaction to a file It closes and free the context at the end
-      
+      
       
       
     
     
       defined(LIBXML_HTTP_ENABLED)
-      (Re)Initialize the HTTP Proxy context by parsing the URL and finding the protocol host port it indicates. Should be like http://myproxy/ or http://myproxy:3128/ A NULL URL cleans up proxy informations.
+      (Re)Initialize the HTTP Proxy context by parsing the URL and finding the protocol host port it indicates. Should be like http://myproxy/ or http://myproxy:3128/ A NULL URL cleans up proxy information.
       
       
     
@@ -11508,7 +11516,7 @@ Could we use @subtypes for this?'/>
       
     
     
-      Create a new property carried by a document.
+      Create a new property carried by a document. NOTE: @value is supposed to be a piece of XML CDATA, so it allows entity references, but XML special chars need to be escaped first by using xmlEncodeEntitiesReentrant(). Use xmlNewProp() if you don't need entities support.
       
       
       
@@ -12046,8 +12054,8 @@ Could we use @subtypes for this?'/>
       defined(LIBXML_SAX1_ENABLED)
       Parse a well-balanced chunk of an XML document called by the parser The allowed sequence for the Well Balanced Chunk is the one defined by the content production in the XML grammar:  [43] content ::= (element | CharData | Reference | CDSect | PI | Comment)*
       
-      
-      
+      
+      
       
       
       
@@ -12057,8 +12065,8 @@ Could we use @subtypes for this?'/>
       defined(LIBXML_SAX1_ENABLED)
       Parse a well-balanced chunk of an XML document called by the parser The allowed sequence for the Well Balanced Chunk is the one defined by the content production in the XML grammar:  [43] content ::= (element | CharData | Reference | CDSect | PI | Comment)*
       
-      
-      
+      
+      
       
       
       
@@ -12107,7 +12115,7 @@ Could we use @subtypes for this?'/>
       
     
     
-      Parse a content:  [43] content ::= (element | CharData | Reference | CDSect | PI | Comment)*
+      Parse a content sequence. Stops at EOF or '</'.  [43] content ::= (element | CharData | Reference | CDSect | PI | Comment)*
       
       
     
@@ -12236,7 +12244,7 @@ Could we use @subtypes for this?'/>
       Parse an external general entity An external general parsed entity is well-formed if it matches the production labeled extParsedEnt.  [78] extParsedEnt ::= TextDecl? content
       
       
-      
+      
       
       
       
@@ -12538,7 +12546,7 @@ Could we use @subtypes for this?'/>
       
     
     
-      Displays the associated file and line informations for the current input
+      Displays the associated file and line information for the current input
       
       
     
@@ -12628,6 +12636,11 @@ Could we use @subtypes for this?'/>
       Clear the top input callback from the input stack. this includes the compiled-in I/O.
       
     
+    
+      defined(LIBXML_OUTPUT_ENABLED)
+      Remove the top output callbacks from the output stack. This includes the compiled-in I/O.
+      
+    
     
       defined(LIBXML_TREE_ENABLED)
       Finds the first closest previous sibling of the node which is an element node. Note the handling of entities references is different than in the W3C DOM element traversal spec since we don't have back reference from entities content to entities references.
@@ -12861,7 +12874,7 @@ Could we use @subtypes for this?'/>
     
     
       defined(LIBXML_REGEXP_ENABLED)
-      Extract error informations from the regexp execution, the parameter @string will be updated with the value pushed and not accepted, the parameter @values must point to an array of @nbval string pointers on return nbval will contain the number of possible strings in that state and the @values array will be updated with them. The string values
+      Extract error information from the regexp execution, the parameter @string will be updated with the value pushed and not accepted, the parameter @values must point to an array of @nbval string pointers on return nbval will contain the number of possible strings in that state and the @values array will be updated with them. The string values
       
       
       
@@ -12872,7 +12885,7 @@ Could we use @subtypes for this?'/>
     
     
       defined(LIBXML_REGEXP_ENABLED)
-      Extract informations from the regexp execution, the parameter @values must point to an array of @nbval string pointers on return nbval will contain the number of possible strings in that state and the @values array will be updated with them. The string values
+      Extract information from the regexp execution, the parameter @values must point to an array of @nbval string pointers on return nbval will contain the number of possible strings in that state and the @values array will be updated with them. The string values
       
       
       
@@ -13037,7 +13050,7 @@ Could we use @subtypes for this?'/>
     
     
       defined(LIBXML_SCHEMAS_ENABLED)
-      Get the error and warning callback informations
+      Get the error and warning callback information
       
       
       
@@ -13099,7 +13112,7 @@ Could we use @subtypes for this?'/>
     
     
       defined(LIBXML_SCHEMAS_ENABLED)
-      Set the error and warning callback informations
+      Set the error and warning callback information
       
       
       
@@ -13171,7 +13184,7 @@ Could we use @subtypes for this?'/>
     
     
       defined(LIBXML_SCHEMAS_ENABLED)
-      Semi private function used to pass informations to a parser context which are a combination of xmlRelaxNGParserFlag .
+      Semi private function used to pass information to a parser context which are a combination of xmlRelaxNGParserFlag .
       
       
       
@@ -13261,7 +13274,7 @@ Could we use @subtypes for this?'/>
       
     
     
-      SAX2 callback when an element end has been detected by the parser. It provides the namespace informations for the element.
+      SAX2 callback when an element end has been detected by the parser. It provides the namespace information for the element.
       
       
       
@@ -13414,7 +13427,7 @@ Could we use @subtypes for this?'/>
       
     
     
-      SAX2 callback when an element start has been detected by the parser. It provides the namespace informations for the element, as well as the new namespace declarations on the element.
+      SAX2 callback when an element start has been detected by the parser. It provides the namespace information for the element, as well as the new namespace declarations on the element.
       
       
       
@@ -13644,7 +13657,7 @@ Could we use @subtypes for this?'/>
       Save a subtree starting at the node parameter to a saving context TODO: The function is not fully implemented yet as it does not return the byte count but 0 instead
       
       
-      
+      
     
     
       Save the URI as an escaped string
@@ -13805,7 +13818,7 @@ Could we use @subtypes for this?'/>
     
     
       defined(LIBXML_SCHEMAS_ENABLED)
-      Get the error and warning callback informations
+      Get the error and warning callback information
       
       
       
@@ -13920,7 +13933,7 @@ Could we use @subtypes for this?'/>
     
     
       defined(LIBXML_SCHEMAS_ENABLED)
-      Set the error and warning callback informations
+      Set the error and warning callback information
       
       
       
@@ -14087,7 +14100,7 @@ Could we use @subtypes for this?'/>
     
     
       defined(LIBXML_SCHEMAS_ENABLED)
-      A schemas validation locator, a callback called by the validator. This is used when file or node informations are not available to find out what file and line number are affected
+      A schemas validation locator, a callback called by the validator. This is used when file or node information are not available to find out what file and line number are affected
       
       
       
@@ -14355,7 +14368,7 @@ Could we use @subtypes for this?'/>
     
     
       defined(LIBXML_DEBUG_ENABLED) && defined(LIBXML_XPATH_ENABLED)
-      Implements the XML shell function "dir" dumps informations about the node (namespace, attributes, content).
+      Implements the XML shell function "dir" dumps information about the node (namespace, attributes, content).
       
       
       
@@ -15043,7 +15056,7 @@ Could we use @subtypes for this?'/>
     
     
       defined(LIBXML_READER_ENABLED)
-      The value indicating whether to normalize white space and attribute values. Since attribute value and end of line normalizations are a MUST in the XML specification only the value true is accepted. The broken bahaviour of accepting out of range character entities like &#0; is of course not supported either.
+      The value indicating whether to normalize white space and attribute values. Since attribute value and end of line normalizations are a MUST in the XML specification only the value true is accepted. The broken behaviour of accepting out of range character entities like &#0; is of course not supported either.
       
       
     
@@ -17270,7 +17283,7 @@ Could we use @subtypes for this?'/>
     
     
       defined(LIBXML_XINCLUDE_ENABLED)
-      Implement the XInclude substitution for the given subtree reusing the informations and data coming from the given context.
+      Implement the XInclude substitution for the given subtree reusing the information and data coming from the given context.
       
       
       
diff --git a/doc/libxml2-refs.xml b/doc/libxml2-refs.xml
index ade2ab7c..2829aacb 100644
--- a/doc/libxml2-refs.xml
+++ b/doc/libxml2-refs.xml
@@ -132,6 +132,7 @@
     
     
     
+    
     
     
     
@@ -2568,6 +2569,7 @@
     
     
     
+    
     
     
     
@@ -2907,6 +2909,7 @@
     
     
     
+    
     
     
     
@@ -3737,6 +3740,7 @@
       
       
       
+      
       
       
       
@@ -6209,6 +6213,7 @@
       
       
       
+      
       
       
       
@@ -6548,6 +6553,7 @@
       
       
       
+      
       
       
       
@@ -11582,6 +11588,7 @@
       
       
       
+      
       
       
     
@@ -12619,6 +12626,7 @@
       
       
       
+      
       
       
       
@@ -13449,6 +13457,7 @@
       
       
       
+      
       
     
     
@@ -14857,6 +14866,7 @@
           
           
           
+          
           
           
           
@@ -14926,7 +14936,6 @@
           
         
         
-          
           
           
         
@@ -15598,6 +15607,9 @@
           
           
         
+        
+          
+        
         
           
           
@@ -16324,7 +16336,6 @@
         
           
           
-          
           
           
           
@@ -16748,6 +16759,7 @@
           
           
           
+          
           
           
           
@@ -17539,6 +17551,7 @@
           
           
           
+          
           
           
           
@@ -17967,6 +17980,9 @@
           
           
         
+        
+          
+        
         
           
         
@@ -18354,6 +18370,7 @@
           
           
           
+          
           
           
           
@@ -19270,6 +19287,7 @@
           
           
           
+          
           
           
           
@@ -19712,9 +19730,6 @@
         
           
         
-        
-          
-        
         
           
           
@@ -19774,7 +19789,6 @@
           
         
         
-          
           
           
           
@@ -19838,6 +19852,7 @@
           
           
           
+          
           
           
         
@@ -19889,11 +19904,6 @@
           
           
         
-        
-          
-          
-          
-        
         
           
           
@@ -20100,6 +20110,8 @@
           
         
         
+          
+          
           
           
           
@@ -20498,7 +20510,6 @@
           
         
         
-          
           
           
           
@@ -20682,6 +20693,7 @@
           
           
           
+          
           
           
         
@@ -21021,7 +21033,6 @@
           
         
         
-          
           
           
         
@@ -21085,6 +21096,10 @@
         
           
         
+        
+          
+          
+        
         
           
           
@@ -21480,6 +21495,13 @@
           
           
         
+        
+          
+          
+          
+          
+          
+        
         
           
         
@@ -22020,6 +22042,7 @@
           
           
           
+          
           
           
           
@@ -22503,6 +22526,7 @@
           
           
           
+          
           
           
           
@@ -22695,6 +22719,14 @@
         
           
         
+        
+          
+          
+        
+        
+          
+          
+        
         
           
         
@@ -22871,9 +22903,6 @@
         
           
         
-        
-          
-        
         
           
           
@@ -23293,6 +23322,8 @@
           
         
         
+          
+          
           
           
           
@@ -23787,9 +23818,6 @@
           
           
         
-        
-          
-        
         
           
           
@@ -23952,17 +23980,6 @@
           
           
         
-        
-          
-          
-          
-          
-          
-          
-          
-          
-          
-        
         
           
         
@@ -23993,6 +24010,7 @@
           
           
           
+          
           
           
           
@@ -24169,63 +24187,6 @@
           
           
         
-        
-          
-          
-          
-          
-          
-          
-          
-          
-          
-          
-          
-          
-          
-          
-          
-          
-          
-          
-          
-          
-          
-          
-          
-          
-          
-          
-        
-        
-          
-          
-          
-          
-          
-          
-          
-          
-          
-          
-          
-          
-          
-          
-          
-          
-          
-          
-          
-          
-          
-          
-          
-          
-          
-          
-          
-        
         
           
         
@@ -25555,7 +25516,6 @@
           
         
         
-          
           
           
           
@@ -25596,7 +25556,6 @@
           
           
           
-          
           
           
           
@@ -25758,6 +25717,9 @@
           
           
         
+        
+          
+        
         
           
         
@@ -25937,6 +25899,7 @@
           
           
           
+          
           
           
           
@@ -26132,7 +26095,6 @@
           
         
         
-          
           
           
           
@@ -26646,6 +26608,7 @@
           
           
           
+          
           
           
         
@@ -27023,7 +26986,6 @@
           
         
         
-          
           
           
           
@@ -27061,6 +27023,8 @@
           
         
         
+          
+          
           
           
         
@@ -27077,7 +27041,6 @@
           
         
         
-          
           
         
         
@@ -27561,7 +27524,6 @@
           
         
         
-          
           
           
           
@@ -27629,6 +27591,7 @@
           
           
           
+          
           
           
           
@@ -28223,7 +28186,6 @@
           
           
           
-          
           
           
         
@@ -28430,6 +28392,7 @@
           
           
           
+          
           
           
           
@@ -28890,6 +28853,7 @@
           
           
           
+          
           
           
           
@@ -29513,6 +29477,7 @@
           
           
           
+          
           
           
           
@@ -29539,6 +29504,7 @@
           
         
         
+          
           
         
         
@@ -29579,7 +29545,6 @@
           
           
           
-          
           
           
         
@@ -29851,9 +29816,9 @@
           
           
           
+          
           
           
-          
           
         
         
@@ -31145,6 +31110,7 @@
           
           
           
+          
           
           
         
@@ -31252,7 +31218,6 @@
           
         
         
-          
           
         
         
@@ -31380,6 +31345,9 @@
         
           
         
+        
+          
+        
         
           
           
@@ -31949,6 +31917,7 @@
           
           
           
+          
           
           
           
diff --git a/doc/libxml2.xsa b/doc/libxml2.xsa
index 07f97086..300bfec3 100644
--- a/doc/libxml2.xsa
+++ b/doc/libxml2.xsa
@@ -8,67 +8,140 @@
   
   
     libxml2
-    v2.9.9
-     Jan 03 2019
+    v2.9.10
+     Oct 30 2019
     http://xmlsoft.org/
-       - Security:
-  CVE-2018-9251 CVE-2018-14567 Fix infinite loop in LZMA decompression (Nick Wellnhofer),
-  CVE-2018-14404 Fix nullptr deref with XPath logic ops (Nick Wellnhofer),
-  
-   - Documentation:
-  reader: Fix documentation comment (Mohammed Sadiq)
+       - Documentation:
+  Fix a few more typos ("fonction") (Nick Wellnhofer),
+  Large batch of typo fixes (Jared Yanovich),
+  Fix typos: tree: move{ -> s}, reconcil{i -> }ed, h{o -> e}ld by... (Jan Pokorný),
+  Fix typo: xpath: simpli{ -> fi}ed (Jan Pokorný),
+  Doc: do not mislead towards "infeasible" scenario wrt. xmlBufNodeDump (Jan Pokorný),
+  Fix comments in test code (zhouzhongyuan),
+  fix comment in testReader.c (zhouzhongyuan)
   
    - Portability:
-  Fix MSVC build with lzma (Nick Wellnhofer),
-  Variables need 'extern' in static lib on Cygwin (Michael Haubenwallner),
-  Really declare dllexport/dllimport for Cygwin (Michael Haubenwallner),
-  Merge branch 'patch-2' into 'master' (Nick Wellnhofer),
-  Change dir to $THEDIR after ACLOCAL_PATH check autoreconf creates aclocal.m4 in $srcdir (Vitaly Buka),
-  Improve error message if pkg.m4 couldn't be found (Nick Wellnhofer),
-  NaN and Inf fixes for pre-C99 compilers (Nick Wellnhofer)
+  Fix some release issues on Fedora 30 (Daniel Veillard),
+  Fix exponent digits when running tests under old MSVC (Daniel Richard G),
+  Work around buggy ceil() function on AIX (Daniel Richard G),
+  Don't call printf with NULL string in runtest.c (Daniel Richard G),
+  Switched from unsigned long to ptrdiff_t in parser.c (Stephen Chenney),
+  timsort.h: support older GCCs (Jérôme Duval),
+  Make configure.ac work with older pkg-config (Nick Wellnhofer),
+  Stop defining _REENTRANT on some Win32 platforms (Nick Wellnhofer),
+  Fix nanohttp.c on MinGW (Nick Wellnhofer),
+  Fix Windows compiler warning in testC14N.c (Nick Wellnhofer),
+  Merge testThreadsWin32.c into testThreads.c (Nick Wellnhofer),
+  Fix Python bindings under Windows (Nick Wellnhofer)
   
    - Bug Fixes:
-  Revert "Support xmlTextReaderNextSibling w/o preparsed doc" (Nick Wellnhofer),
-  Fix building relative URIs (Thomas Holder),
-  Problem with data in interleave in RelaxNG validation (Nikolai Weibull),
-  Fix memory leak in xmlSwitchInputEncodingInt error path (Nick Wellnhofer),
-  Set doc on element obtained from freeElems (Nick Wellnhofer),
-  Fix HTML serialization with UTF-8 encoding (Nick Wellnhofer),
-  Use actual doc in xmlTextReaderRead*Xml (Nick Wellnhofer),
-  Unlink node before freeing it in xmlSAX2StartElement (Nick Wellnhofer),
-  Check return value of nodePush in xmlSAX2StartElement (Nick Wellnhofer),
-  Free input buffer in xmlHaltParser (Nick Wellnhofer),
-  Reset HTML parser input pointers on encoding failure (Nick Wellnhofer),
-  Don't run icu_parse_test if EUC-JP is unsupported (Nick Wellnhofer),
-  Fix xmlSchemaValidCtxtPtr reuse memory leak (Greg Hildstrom),
-  Fix xmlTextReaderNext with preparsed document (Felix Bünemann),
-  Remove stray character from comment (Nick Wellnhofer),
-  Remove a misleading line from xmlCharEncOutput (Andrey Bienkowski),
-  HTML noscript should not close p (Daniel Veillard),
-  Don't change context node in xmlXPathRoot (Nick Wellnhofer),
-  Stop using XPATH_OP_RESET (Nick Wellnhofer),
-  Revert "Change calls to xmlCharEncInput to set flush false" (Nick Wellnhofer)
+  Another fix for conditional sections at end of document (Nick Wellnhofer),
+  Fix for conditional sections at end of document (Nick Wellnhofer),
+  Make sure that Python tests exit with error code (Nick Wellnhofer),
+  Audit memory error handling in xpath.c (Nick Wellnhofer),
+  Fix error code in xmlTextWriterStartDocument (Nick Wellnhofer),
+  Fix integer overflow when counting written bytes (Nick Wellnhofer),
+  Fix uninitialized memory access in HTML parser (Nick Wellnhofer),
+  Fix memory leak in xmlSchemaValAtomicType (Nick Wellnhofer),
+  Disallow conditional sections in internal subset (Nick Wellnhofer),
+  Fix use-after-free in xmlTextReaderFreeNodeList (Nick Wellnhofer),
+  Fix Regextests (Nick Wellnhofer),
+  Fix empty branch in regex (Nick Wellnhofer),
+  Fix integer overflow in entity recursion check (Nick Wellnhofer),
+  Don't read external entities or XIncludes from stdin (Nick Wellnhofer),
+  Fix Schema determinism check of ##other namespaces (Nick Wellnhofer),
+  Fix potential null deref in xmlSchemaIDCFillNodeTables (zhouzhongyuan),
+  Fix potential memory leak in xmlBufBackToBuffer (Nick Wellnhofer),
+  Fix error message when processing XIncludes with fallbacks (Nick Wellnhofer),
+  Fix memory leak in xmlRegEpxFromParse (zhouzhongyuan),
+  14:00 is a valid timezone for xs:dateTime (Nick Wellnhofer),
+  Fix memory leak in xmlParseBalancedChunkMemoryRecover (Zhipeng Xie),
+  Fix potential null deref in xmlRelaxNGParsePatterns (Nick Wellnhofer),
+  Misleading error message with xs:{min|max}Inclusive (bettermanzzy),
+  Fix memory leak in xmlXIncludeLoadTxt (Wang Kirin),
+  Partial fix for comparison of xs:durations (Nick Wellnhofer),
+  Fix null deref in xmlreader buffer (zhouzhongyuan),
+  Fix unability to RelaxNG-validate grammar with choice-based name class (Jan Pokorný),
+  Fix unability to validate ambiguously constructed interleave for RelaxNG (Jan Pokorný),
+  Fix possible null dereference in xmlXPathIdFunction (zhouzhongyuan),
+  fix memory leak in xmlAllocOutputBuffer (zhouzhongyuan),
+  Fix unsigned int overflow (Jens Eggerstedt),
+  dict.h: gcc 2.95 doesn't allow multiple storage classes (Nick Wellnhofer),
+  Fix another code path in xmlParseQName (Nick Wellnhofer),
+  Make sure that xmlParseQName returns NULL in error case (Nick Wellnhofer),
+  Fix build without reader but with pattern (Nick Wellnhofer),
+  Fix memory leak in xmlAllocOutputBufferInternal error path (Nick Wellnhofer),
+  Fix unsigned integer overflow (Nick Wellnhofer),
+  Fix return value of xmlOutputBufferWrite (Nick Wellnhofer),
+  Fix parser termination from "Double hyphen within comment" error (David Warring),
+  Fix call stack overflow in xmlFreePattern (Nick Wellnhofer),
+  Fix null deref in previous commit (Nick Wellnhofer),
+  Fix memory leaks in xmlXPathParseNameComplex error paths (Nick Wellnhofer),
+  Check for integer overflow in xmlXPtrEvalChildSeq (Nick Wellnhofer),
+  Fix xmllint dump of XPath namespace nodes (Nick Wellnhofer),
+  Fix float casts in xmlXPathSubstringFunction (Nick Wellnhofer),
+  Fix null deref in xmlregexp error path (Nick Wellnhofer),
+  Fix null pointer dereference in xmlTextReaderReadOuterXml (Nick Wellnhofer),
+  Fix memory leaks in xmlParseStartTag2 error paths (Nick Wellnhofer),
+  Fix memory leak in xmlSAX2StartElement (Nick Wellnhofer),
+  Fix commit "Memory leak in xmlFreeID (xmlreader.c)" (Nick Wellnhofer),
+  Fix NULL pointer deref in xmlTextReaderValidateEntity (Nick Wellnhofer),
+  Memory leak in xmlFreeTextReader (Nick Wellnhofer),
+  Memory leak in xmlFreeID (xmlreader.c) (Nick Wellnhofer)
   
    - Improvements:
-  Fix "Problem with data in interleave in RelaxNG validation" (Nikolai Weibull),
-  cleanup: remove some unreachable code (Thomas Holder),
-  add --relative to testURI (Thomas Holder),
-  Remove redefined starts and defines inside include elements (Nikolai Weibull),
-  Allow choice within choice in nameClass in RELAX NG (Nikolai Weibull),
-  Look inside divs for starts and defines inside include (Nikolai Weibull),
-  Add compile and libxml2-config.cmake to .gitignore (Nikolai Weibull),
-  Stop using doc->charset outside parser code (Nick Wellnhofer),
-  Add newlines to 'xmllint --xpath' output (Nick Wellnhofer),
-  Don't include SAX.h from globals.h (Nick Wellnhofer),
-  Support xmlTextReaderNextSibling w/o preparsed doc (Felix Bünemann),
-  Don't instruct user to run make when autogen.sh failed (林博仁(Buo-ren Lin)),
-  Run Travis ASan tests with "sudo: required" (Nick Wellnhofer),
-  Improve restoring of context size and position (Nick Wellnhofer),
-  Simplify and harden nodeset filtering (Nick Wellnhofer),
-  Avoid unnecessary backups of the context node (Nick Wellnhofer),
-  Fix inconsistency in xmlXPathIsInf (Nick Wellnhofer)
+  Run XML conformance tests under CI (Nick Wellnhofer),
+  Update GitLab CI config (Nick Wellnhofer),
+  Propagate memory errors in valuePush (Nick Wellnhofer),
+  Propagate memory errors in xmlXPathCompExprAdd (Nick Wellnhofer),
+  Make xmlFreeDocElementContent non-recursive (Nick Wellnhofer),
+  Enable continuous integration via GitLab CI (Nick Wellnhofer),
+  Avoid ignored attribute warnings under GCC (Nick Wellnhofer),
+  Make xmlDumpElementContent non-recursive (Nick Wellnhofer),
+  Make apibuild.py ignore ATTRIBUTE_NO_SANITIZE (Nick Wellnhofer),
+  Mark xmlExp* symbols as removed (Nick Wellnhofer),
+  Make xmlParseConditionalSections non-recursive (Nick Wellnhofer),
+  Adjust expected error in Python tests (Nick Wellnhofer),
+  Make xmlTextReaderFreeNodeList non-recursive (Nick Wellnhofer),
+  Make xmlFreeNodeList non-recursive (Nick Wellnhofer),
+  Make xmlParseContent and xmlParseElement non-recursive (Nick Wellnhofer),
+  Remove executable bit from non-executable files (Nick Wellnhofer),
+  Fix expected output of test/schemas/any4 (Nick Wellnhofer),
+  Optimize build instructions in README (zhouzhongyuan),
+  xml2-config.in: Output CFLAGS and LIBS on the same line (Hugh McMaster),
+  xml2-config: Add a --dynamic switch to print only shared libraries (Hugh McMaster),
+  Annotate functions with __attribute__((no_sanitize)) (Nick Wellnhofer),
+  Fix warnings when compiling without reader or push parser (Nick Wellnhofer),
+  Remove unused member `doc` in xmlSaveCtxt (Nick Wellnhofer),
+  Limit recursion depth in xmlXPathCompOpEvalPredicate (Nick Wellnhofer),
+  Remove -Wno-array-bounds (Nick Wellnhofer),
+  Remove unreachable code in xmlXPathCountFunction (Nick Wellnhofer),
+  Improve XPath predicate and filter evaluation (Nick Wellnhofer),
+  Limit recursion depth in xmlXPathOptimizeExpression (Nick Wellnhofer),
+  Disable hash randomization when fuzzing (Nick Wellnhofer),
+  Optional recursion limit when parsing XPath expressions (Nick Wellnhofer),
+  Optional recursion limit when evaluating XPath expressions (Nick Wellnhofer),
+  Use break statements in xmlXPathCompOpEval (Nick Wellnhofer),
+  Optional XPath operation limit (Nick Wellnhofer),
+  Fix compilation with --with-minimum (Nick Wellnhofer),
+  Check XPath stack after calling functions (Nick Wellnhofer),
+  Remove debug printf in xmlreader.c (Nick Wellnhofer),
+  Always define LIBXML_THREAD_ENABLED when enabled (Michael Haubenwallner),
+  Regenerate NEWS (Nick Wellnhofer),
+  Change git repo URL (Nick Wellnhofer),
+  Change bug tracker URL (Nick Wellnhofer),
+  Remove outdated HTML file (Nick Wellnhofer),
+  Fix unused function warning in testapi.c (Nick Wellnhofer),
+  Add some generated test files to .gitignore (Nick Wellnhofer),
+  Remove unneeded function pointer casts (Nick Wellnhofer),
+  Fix -Wcast-function-type warnings (GCC 8) (Nick Wellnhofer),
+  Fix -Wformat-truncation warnings (GCC 8) (Nick Wellnhofer)
   
    - Cleanups:
+  Rebuild docs (Nick Wellnhofer),
+  Disable xmlExp regex code (Nick Wellnhofer),
+  Remove redundant code in xmlRelaxNGValidateState (Nick Wellnhofer),
+  Remove redundant code in xmlXPathCompRelationalExpr (Nick Wellnhofer)
   
 
 
diff --git a/doc/news.html b/doc/news.html
index 434a09e9..f2ac51ae 100644
--- a/doc/news.html
+++ b/doc/news.html
@@ -8,7 +8,259 @@ H2 {font-family: Verdana,Arial,Helvetica}
 H3 {font-family: Verdana,Arial,Helvetica}
 A:link, A:visited, A:active { text-decoration: underline }
 Releases
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

The XML C parser and toolkit of Gnome

Releases

Main Menu
Related links

The change log describes the recents commits -to the GIT code base.

Here is the list of public releases:

v2.9.10: Oct 30 2019

    +to the GIT code base.

    Here is the list of public releases:

    v2.9.11: May 13 2021

      +
    • Security:
      + Patch for security issue CVE-2021-3541 (Daniel Veillard)
      +
    • + +
    • Documentation:
      + Clarify xmlNewDocProp documentation (Nick Wellnhofer)
      +
    • + +
    • Portability:
      + CMake: Only add postfixes if MSVC (Christopher Degawa),
      + Fix XPath NaN/Inf for older GCC versions (Nick Wellnhofer),
      + Use CMake PROJECT_VERSION (Markus Rickert),
      + Fix warnings in libxml.m4 with autoconf 2.70+. (Simon Josefsson),
      + Add CI for CMake on MSVC (Markus Rickert),
      + Update minimum required CMake version (Markus Rickert),
      + Add variables for configured options to CMake config files (Markus Rickert),
      + Check if variables exist when defining targets (Markus Rickert),
      + Check if target exists when reading target properties (Markus Rickert),
      + Add xmlcatalog target and definition to config files (Markus Rickert),
      + Remove include directories for link-only dependencies (Markus Rickert),
      + Fix ICU build in CMake (Markus Rickert),
      + Configure pkgconfig, xml2-config, and xml2Conf.sh file (Markus Rickert),
      + Update CMake config files (Markus Rickert),
      + Add xmlcatalog and xmllint to CMake export (Markus Rickert),
      + Simplify xmlexports.h (Nick Wellnhofer),
      + Require dependencies based on enabled CMake options (Markus Rickert),
      + Use NAMELINK_COMPONENT in CMake install (Markus Rickert),
      + Add CMake files to EXTRA_DIST (Markus Rickert),
      + Add missing compile definition for static builds to CMake (Markus Rickert),
      + Add CI for CMake on Linux and MinGW (Markus Rickert),
      + Fix variable name in win32/configure.js (Nick Wellnhofer),
      + Fix version parsing in win32/configure.js (Nick Wellnhofer),
      + Fix autotools warnings (Nick Wellnhofer),
      + Update config.h.cmake.in (Markus Rickert),
      + win32: allow passing *FLAGS on command line (Michael Stahl),
      + Configure file xmlwin32version.h.in on MSVC (Markus Rickert),
      + List headers individually (Markus Rickert),
      + Add CMake build files (Markus Rickert),
      + Parenthesize Py<type>_Check() in ifs (Miro Hrončok),
      + Minor fixes to configure.js (Nick Wellnhofer)
      +
    • + +
    • Bug Fixes:
      + Fix null deref in legacy SAX1 parser (Nick Wellnhofer),
      + Fix handling of unexpected EOF in xmlParseContent (Nick Wellnhofer),
      + Fix line numbers in error messages for mismatched tags (Nick Wellnhofer),
      + Fix htmlTagLookup (Nick Wellnhofer),
      + Propagate error in xmlParseElementChildrenContentDeclPriv (Nick Wellnhofer),
      + Fix user-after-free with `xmllint --xinclude --dropdtd` (Nick Wellnhofer),
      + Fix dangling pointer with `xmllint --dropdtd` (Nick Wellnhofer),
      + Validate UTF8 in xmlEncodeEntities (Joel Hockey),
      + Fix use-after-free with `xmllint --html --push` (Nick Wellnhofer),
      + Allow FP division by zero in xmlXPathInit (Nick Wellnhofer),
      + Fix xmlGetNodePath with invalid node types (Nick Wellnhofer),
      + Fix exponential behavior with recursive entities (Nick Wellnhofer),
      + Fix quadratic behavior when looking up xml:* attributes (Nick Wellnhofer),
      + Fix slow parsing of HTML with encoding errors (Nick Wellnhofer),
      + Fix null deref introduced with previous commit (Nick Wellnhofer),
      + Check for invalid redeclarations of predefined entities (Nick Wellnhofer),
      + Add the copy of type from original xmlDoc in xmlCopyDoc() (SVGAnimate),
      + parser.c: shrink the input buffer when appropriate (Mike Dalessio),
      + Fix infinite loop in HTML parser introduced with recent commits (Nick Wellnhofer),
      + Fix quadratic runtime when parsing CDATA sections (Nick Wellnhofer),
      + Fix timeout when handling recursive entities (Nick Wellnhofer),
      + Fix memory leak in xmlParseElementMixedContentDecl (Nick Wellnhofer),
      + Fix null deref in xmlStringGetNodeList (Nick Wellnhofer),
      + use new htmlParseLookupCommentEnd to find comment ends (Mike Dalessio),
      + htmlParseComment: treat `--!>` as if it closed the comment (Mike Dalessio),
      + Fix integer overflow in xmlSchemaGetParticleTotalRangeMin (Nick Wellnhofer),
      + encoding: fix memleak in xmlRegisterCharEncodingHandler() (Xiaoming Ni),
      + xmlschemastypes.c: xmlSchemaGetFacetValueAsULong add, check "facet->val" (Xiaoming Ni),
      + Fix null pointer deref in xmlXPtrRangeInsideFunction (Nick Wellnhofer),
      + Fix quadratic runtime in HTML push parser with null bytes (Nick Wellnhofer),
      + Avoid quadratic checking of identity-constraints (Michael Matz),
      + Fix building with ICU 68. (Frederik Seiffert),
      + Convert python/libxml.c to PY_SSIZE_T_CLEAN (Victor Stinner),
      + Fix xmlURIEscape memory leaks. (Elliott Hughes),
      + Avoid call stack overflow with XML reader and recursive XIncludes (Nick Wellnhofer),
      + Fix caret in regexp character group (Nick Wellnhofer),
      + parser.c: xmlParseCharData peek behavior fixed wrt newlines (Mike Dalessio),
      + Fix memory leaks in XPointer string-range function (Nick Wellnhofer),
      + Fix use-after-free when XIncluding text from Reader (Nick Wellnhofer),
      + Fix SEGV in xmlSAXParseFileWithData (yanjinjq),
      + Fix null deref in XPointer expression error path (Nick Wellnhofer),
      + Don't call xmlXPathInit directly (Nick Wellnhofer),
      + Fix cleanup of attributes in XML reader (Nick Wellnhofer),
      + Fix double free in XML reader with XIncludes (Nick Wellnhofer),
      + Fix memory leak in xmlXIncludeAddNode error paths (Nick Wellnhofer),
      + Revert "Fix quadratic runtime in xi:fallback processing" (Nick Wellnhofer),
      + Fix error reporting with xi:fallback (Nick Wellnhofer),
      + Fix quadratic runtime in xi:fallback processing (Nick Wellnhofer),
      + Fix corner case with empty xi:fallback (Nick Wellnhofer),
      + Fix XInclude regression introduced with recent commit (Nick Wellnhofer),
      + Fix memory leak in runtest.c (Nick Wellnhofer),
      + Make "xmllint --push --recovery" work (Nick Wellnhofer),
      + Revert "Do not URI escape in server side includes" (Nick Wellnhofer),
      + Fix column number accounting in xmlParse*NameAndCompare (Nick Wellnhofer),
      + Stop counting nbChars in parser context (Nick Wellnhofer),
      + Fix out-of-bounds read with 'xmllint --htmlout' (Nick Wellnhofer),
      + Fix exponential runtime and memory in xi:fallback processing (Nick Wellnhofer),
      + Don't process siblings of root in xmlXIncludeProcess (Nick Wellnhofer),
      + Don't recurse into xi:include children in xmlXIncludeDoProcess (Nick Wellnhofer),
      + Fix memory leak in xmlXIncludeIncludeNode error paths (Nick Wellnhofer),
      + Check for custom free function in global destructor (Nick Wellnhofer),
      + Fix integer overflow when comparing schema dates (Nick Wellnhofer),
      + Fix exponential runtime in xmlFARecurseDeterminism (Nick Wellnhofer),
      + Don't try to handle namespaces when building HTML documents (Nick Wellnhofer),
      + Fix several quadratic runtime issues in HTML push parser (Nick Wellnhofer),
      + Fix quadratic runtime when push parsing HTML start tags (Nick Wellnhofer),
      + Reset XML parser input before reporting errors (David Kilzer),
      + Fix quadratic runtime when push parsing HTML entity refs (Nick Wellnhofer),
      + Fix HTML push parser lookahead (Nick Wellnhofer),
      + Make htmlCurrentChar always translate U+0000 (Nick Wellnhofer),
      + Fix UTF-8 decoder in HTML parser (Nick Wellnhofer),
      + Fix quadratic runtime when parsing HTML script content (Nick Wellnhofer),
      + Reset HTML parser input before reporting error (Nick Wellnhofer),
      + Fix more quadratic runtime issues in HTML push parser (Nick Wellnhofer),
      + Fix regression introduced with 477c7f6a (Nick Wellnhofer),
      + Fix quadratic runtime in HTML parser (Nick Wellnhofer),
      + Reset HTML parser input before reporting encoding error (Nick Wellnhofer),
      + Fix integer overflow in xmlFAParseQuantExact (Nick Wellnhofer),
      + Fix return value of xmlC14NDocDumpMemory (Nick Wellnhofer),
      + Don't follow next pointer on documents in xmlXPathRunStreamEval (Nick Wellnhofer),
      + Fix integer overflow in _xmlSchemaParseGYear (Nick Wellnhofer),
      + Fix integer overflow when parsing {min,max}Occurs (Nick Wellnhofer),
      + Fix another memory leak in xmlSchemaValAtomicType (Nick Wellnhofer),
      + Fix unsigned integer overflow in htmlParseTryOrFinish (Nick Wellnhofer),
      + Fix integer overflow in htmlParseCharRef (Nick Wellnhofer),
      + Fix undefined behavior in UTF16LEToUTF8 (Nick Wellnhofer),
      + Fix return value of xmlCharEncOutput (Nick Wellnhofer),
      + Never expand parameter entities in text declaration (Nick Wellnhofer),
      + Fix undefined behavior in xmlXPathTryStreamCompile (Nick Wellnhofer),
      + Fix use-after-free with validating reader (Nick Wellnhofer),
      + xmlParseBalancedChunkMemory must not be called with NULL doc (Nick Wellnhofer),
      + Revert "Fix memory leak in xmlParseBalancedChunkMemoryRecover" (Nick Wellnhofer),
      + Fix memory leak in xmlXIncludeLoadDoc error path (Nick Wellnhofer),
      + Make schema validation fail with multiple top-level elements (Nick Wellnhofer),
      + Call xmlCleanupParser on ELF destruction (Samuel Thibault),
      + Fix copying of entities in xmlParseReference (Nick Wellnhofer),
      + Fix memory leak in xmlSchemaValidateStream (Zhipeng Xie),
      + Fix xmlSchemaGetCanonValue formatting for date and dateTime (Kevin Puetz),
      + Fix memory leak when shared libxml.dll is unloaded (Kevin Puetz),
      + Fix potentially-uninitialized critical section in Win32 DLL builds (Kevin Puetz),
      + Fix integer overflow in xmlBufferResize (Nick Wellnhofer),
      + Check for overflow when allocating two-dimensional arrays (Nick Wellnhofer),
      + Remove useless comparisons (Nick Wellnhofer),
      + Fix overflow check in xmlNodeDump (Nick Wellnhofer),
      + Fix infinite loop in xmlStringLenDecodeEntities (Zhipeng Xie),
      + Fix freeing of nested documents (Nick Wellnhofer),
      + Fix more memory leaks in error paths of XPath parser (Nick Wellnhofer),
      + Fix memory leaks of encoding handlers in xmlsave.c (Nick Wellnhofer),
      + Fix xml2-config error code (Nick Wellnhofer),
      + Fix memory leak in error path of XPath expr parser (Nick Wellnhofer),
      + Fix overflow handling in xmlBufBackToBuffer (Nick Wellnhofer),
      + Null pointer handling in catalog.c (raniervf),
      + xml2-config.in: fix regressions introduced by commit 2f2bf4b2c (Dmitry V. Levin)
      +
    • + +
    • Improvements:
      + Store per-element parser state in a struct (Nick Wellnhofer),
      + update for xsd:language type check (PaulHiggs),
      + Update INSTALL.libxml2 (Nick Wellnhofer),
      + Fix include order in c14n.h (Nick Wellnhofer),
      + Fix duplicate xmlStrEqual calls in htmlParseEndTag (Nick Wellnhofer),
      + Speed up htmlCheckAutoClose (Nick Wellnhofer),
      + Speed up htmlTagLookup (Nick Wellnhofer),
      + Stop checking attributes for UTF-8 validity (Nick Wellnhofer),
      + Reduce some fuzzer timeouts (Nick Wellnhofer),
      + Only run a few CI tests unless scheduled (Nick Wellnhofer),
      + Improve fuzzer stability (Nick Wellnhofer),
      + Check for feature flags in fuzzer tests (Nick Wellnhofer),
      + Another attempt at improving fuzzer stability (Nick Wellnhofer),
      + Revert "Improve HTML fuzzer stability" (Nick Wellnhofer),
      + Add charset names to fuzzing dictionaries (Nick Wellnhofer),
      + Improve HTML fuzzer stability (Nick Wellnhofer),
      + Add CI for MSVC x86 (Markus Rickert),
      + Add a flag to not output anything when xmllint succeeded (hhb),
      + Speed up HTML fuzzer (Nick Wellnhofer),
      + Remove unused encoding parameter of HTML output functions (Nick Wellnhofer),
      + Handle malloc failures in fuzzing code (Nick Wellnhofer),
      + add test coverage for incorrectly-closed comments (Mike Dalessio),
      + Enforce maximum length of fuzz input (Nick Wellnhofer),
      + Remove temporary members from struct _xmlXPathContext (Nick Wellnhofer),
      + Build the Python extension with PY_SSIZE_T_CLEAN (Victor Stinner),
      + Add CI test for Python 3 (Nick Wellnhofer),
      + Add fuzzing dictionaries to EXTRA_DIST (Nick Wellnhofer),
      + Add 'fuzz' subdirectory to DIST_SUBDIRS (Nick Wellnhofer),
      + Allow port numbers up to INT_MAX (Nick Wellnhofer),
      + Handle dumps of corrupted documents more gracefully (Nick Wellnhofer),
      + Limit size of free lists in XML reader when fuzzing (Nick Wellnhofer),
      + Hardcode maximum XPath recursion depth (Nick Wellnhofer),
      + Pass URL of main entity in XML fuzzer (Nick Wellnhofer),
      + Consolidate seed corpus generation (Nick Wellnhofer),
      + Test fuzz targets with dummy driver (Nick Wellnhofer),
      + Fix regression introduced with commit d88df4b (Nick Wellnhofer),
      + Fix regression introduced with commit 74dcc10b (Nick Wellnhofer),
      + Add TODO comment in xinclude.c (Nick Wellnhofer),
      + Stop using maxParserDepth in xpath.c (Nick Wellnhofer),
      + Remove dead code in xinclude.c (Nick Wellnhofer),
      + Don't add formatting newlines to XInclude nodes (Nick Wellnhofer),
      + Don't use SAX1 if all element handlers are NULL (Nick Wellnhofer),
      + Remove unneeded progress checks in HTML parser (Nick Wellnhofer),
      + Use strcmp when fuzzing (Nick Wellnhofer),
      + Fix XPath fuzzer (Nick Wellnhofer),
      + Fuzz XInclude engine (Nick Wellnhofer),
      + Add XPath and XPointer fuzzer (Nick Wellnhofer),
      + Update fuzzing code (Nick Wellnhofer),
      + More *NodeDumpOutput fixes (Nick Wellnhofer),
      + Fix *NodeDumpOutput functions (Nick Wellnhofer),
      + Make xmlNodeDumpOutputInternal non-recursive (Nick Wellnhofer),
      + Make xhtmlNodeDumpOutput non-recursive (Nick Wellnhofer),
      + Make htmlNodeDumpFormatOutput non-recursive (Nick Wellnhofer),
      + Fix .gitattributes (Nick Wellnhofer),
      + Rework control flow in htmlCurrentChar (Nick Wellnhofer),
      + Make 'xmllint --html --push -' read from stdin (Nick Wellnhofer),
      + Remove misleading comments in xpath.c (Nick Wellnhofer),
      + Update to Devhelp index file format version 2 (Andre Klapper),
      + Set project language to C (Markus Rickert),
      + Add variable for working directory of XML Conformance Test Suite (Markus Rickert),
      + Add additional tests and XML Conformance Test Suite (Markus Rickert),
      + Add command line option for temp directory in runtest (Markus Rickert),
      + Ensure LF line endings for test files (Markus Rickert),
      + Enable runtests and testThreads (Markus Rickert),
      + Limit regexp nesting depth (Nick Wellnhofer),
      + Fix return values and documentation in encoding.c (Nick Wellnhofer),
      + Add regexp regression tests (David Kilzer),
      + Report error for invalid regexp quantifiers (Nick Wellnhofer),
      + Fix rebuilding docs, by hiding __attribute__((...)) behind a macro. (Martin Vidner),
      + Copy xs:duration parser from libexslt (Nick Wellnhofer),
      + Fuzz target for XML Schemas (Nick Wellnhofer),
      + Move entity recorder to fuzz.c (Nick Wellnhofer),
      + Fuzz target for HTML parser (Nick Wellnhofer),
      + Update GitLab CI container (Nick Wellnhofer),
      + Add options file for xml fuzzer (Nick Wellnhofer),
      + Add a couple of libFuzzer targets (Nick Wellnhofer),
      + Guard new calls to xmlValidatePopElement in xml_reader.c (Daniel Cheng),
      + Add LIBXML_VALID_ENABLED to xmlreader (Łukasz Wojniłowicz),
      + Fix typos (Nick Wellnhofer),
      + Disable LeakSanitizer (Nick Wellnhofer),
      + Stop calling SAX getEntity handler from XMLReader (Nick Wellnhofer),
      + Add test case for recursive external parsed entities (Nick Wellnhofer),
      + Enable error tests with entity substitution (Nick Wellnhofer),
      + Don't load external entity from xmlSAX2GetEntity (Nick Wellnhofer),
      + Merge code paths loading external entities (Nick Wellnhofer),
      + Copy some XMLReader option flags to parser context (Nick Wellnhofer),
      + Add xmlPopOutputCallbacks (Nick Wellnhofer),
      + Updated Python test reader2.py (Pieter van Oostrum),
      + Updated python/tests/tstLastError.py (Pieter van Oostrum),
      + Use random seed in xmlDictComputeFastKey (Ranier Vilela),
      + Enable more undefined behavior sanitizers (Nick Wellnhofer)
      +
    • +

    v2.9.10: Oct 30 2019

    • Documentation:
      Fix a few more typos ("fonction") (Nick Wellnhofer),
      Large batch of typo fixes (Jared Yanovich),
      @@ -258,7 +510,7 @@ to the GIT code base.

    2.9.7: Nov 02 2017

    • Documentation:
      - xmlcatalog: refresh man page wrt. quering system catalog easily (Jan Pokorný)
      + xmlcatalog: refresh man page wrt. querying system catalog easily (Jan Pokorný)
    • Portability:
      @@ -589,7 +841,7 @@ to the GIT code base.

      Improvements:
      Reuse xmlHaltParser() where it makes sense (Daniel Veillard),
      xmlStopParser reset errNo (Daniel Veillard),
      - Reenable xz support by default (Daniel Veillard),
      + Re-enable xz support by default (Daniel Veillard),
      Recover unescaped less-than character in HTML recovery parsing (Daniel Veillard),
      Allow HTML serializer to output HTML5 DOCTYPE (Shaun McCance),
      Regression test for bug #695699 (Nick Wellnhofer),
      @@ -972,7 +1224,7 @@ Gansterer),
      Harden the buffer code and make it more compatible (Daniel Veillard),
      More cleanups for input/buffers code (Daniel Veillard),
      Cleanup function xmlBufResetInput(),
      to set input from Buffer (Daniel Veillard) - Swicth the test program for characters to new input buffers (Daniel Veillard),
      + Switch the test program for characters to new input buffers (Daniel Veillard),
      Convert the HTML tree module to the new buffers (Daniel Veillard),
      Convert of the HTML parser to new input buffers (Daniel Veillard),
      Convert the writer to new output buffer and save APIs (Daniel Veillard),
      @@ -1069,7 +1321,7 @@ Gansterer),
      Avoid memory leak if xmlParserInputBufferCreateIO fails (Lin Yi-Li), Prevent an infinite loop when dumping a node with encoding problems (Timothy Elliott), xmlParseNodeInContext problems with an empty document (Tim Elliott), - HTML element position is not detected propperly (Pavel Andrejs), + HTML element position is not detected properly (Pavel Andrejs), Fix an off by one pointer access (Jüri Aedla), Try to fix a problem with entities in SAX mode (Daniel Veillard), Fix a crash with xmllint --path on empty results (Daniel Veillard), @@ -1097,7 +1349,7 @@ Gansterer),
      Small fix for previous commit (Daniel Veillard), Fix a potential freeing error in XPath (Daniel Veillard), Fix a potential memory access error (Daniel Veillard), - Reactivate the shared library versionning script (Daniel Veillard) + Reactivate the shared library versioning script (Daniel Veillard)

    • Improvements: @@ -1276,7 +1528,7 @@ Gansterer),
      Problem with extern extern in header (Daniel Veillard), Add -lnetwork for compiling on Haiku (Scott McCreary), Runtest portability patch for Solaris (Tim Rice), - Small patch to accomodate the Haiku OS (Scott McCreary), + Small patch to accommodate the Haiku OS (Scott McCreary), 584605 package VxWorks folder in the distribution (Daniel Veillard), 574017 Realloc too expensive on most platform (Daniel Veillard), Fix windows build (Rob Richards), @@ -1306,7 +1558,7 @@ Gansterer),
      558452 RNG compilation of optional multiple child (Daniel Veillard), 579746 XSD validation not correct / nilable groups (Daniel Veillard), 502960 provide namespace stack when parsing entity (Daniel Veillard), - 566012 part 2 fix regresion tests and push mode (Daniel Veillard), + 566012 part 2 fix regression tests and push mode (Daniel Veillard), 566012 autodetected encoding and encoding conflict (Daniel Veillard), 584220 xpointer(/) and xinclude problems (Daniel Veillard), 587663 Incorrect Attribute-Value Normalization (Daniel Veillard), @@ -1424,14 +1676,14 @@ Gansterer),
      parsing and validation fixes based on the W3C regression tests, reader tree skipping function fix (Ashwin), Schemas regexps escaping fix (Volker Grabsch), handling of entity push errors (Ashwin), fix a slowdown - when encoder cant serialize characters on output
    • + when encoder can't serialize characters on output
    • Code cleanup: compilation fix without the reader, without the output (Robert Schwebel), python whitespace (Martin), many space/tabs cleanups, serious cleanup of the entity handling code
    • Improvement: switch parser to XML-1.0 5th edition, add parsing flags for old versions, switch URI parsing to RFC 3986, add xmlSchemaValidCtxtGetParserCtxt (Holger Kaelberer), - new hashing functions for dictionnaries (based on Stefan Behnel work), + new hashing functions for dictionaries (based on Stefan Behnel work), improve handling of misplaced html/head/body in HTML parser, better regression test tools and code coverage display, better algorithms to detect various versions of the billion laughts attacks, make @@ -1485,7 +1737,7 @@ Gansterer),
    • Code cleanup: fix open() call third argument, regexp cut'n paste copy error, unused variable in __xmlGlobalInitMutexLock (Hannes Eder), - some make distcheck realted fixes (John Carr)
    • + some make distcheck related fixes (John Carr)
    • Improvements: HTTP Header: includes port number (William Brack), testURI --debug option,

    2.6.30: Aug 23 2007

      @@ -1572,13 +1824,13 @@ Gansterer),
    • bug fix: xmlGetNodePath fix (Kasimier), xmlDOMWrapAdoptNode and attribute (Kasimier), crash when using the recover mode, xmlXPathEvalExpr problem (Kasimier), xmlXPathCompExprAdd bug (Kasimier), - missing destry in xmlFreeRMutex (Andrew Nosenko), XML Schemas fixes + missing destroy in xmlFreeRMutex (Andrew Nosenko), XML Schemas fixes (Kasimier), warning on entities processing, XHTML script and style serialization (Kasimier), python generator for long types, bug in xmlSchemaClearValidCtxt (Bertrand Fritsch), xmlSchemaXPathEvaluate allocation bug (Marton Illes), error message end of line (Rob Richards), fix attribute serialization in writer (Rob Richards), PHP4 DTD validation - crasher, parser safety patch (Ben Darnell), _private context propagation + crash, parser safety patch (Ben Darnell), _private context propagation when parsing entities (with Michael Day), fix entities behaviour when using SAX, URI to file path fix (Mikhail Zabaluev), disappearing validity context, arg error in SAX callback (Mike Hommey), fix mixed-content @@ -1707,7 +1959,7 @@ Gansterer),
      Anatolij), xmlSchemaPSimpleTypeErr error report (Kasimier Buchcik), xml: namespace ahndling in Schemas (Kasimier), empty model group in Schemas (Kasimier), wildcard in Schemas (Kasimier), URI composition (William), - xs:anyType in Schemas (Kasimier), Python resolver emmitting error + xs:anyType in Schemas (Kasimier), Python resolver emitting error messages directly, Python xmlAttr.parent (Jakub Piotr Clapa), trying to fix the file path/URI conversion, xmlTextReaderGetAttribute fix (Rob Richards), xmlSchemaFreeAnnot memleak (Kasimier), HTML UTF-8 @@ -1731,7 +1983,7 @@ Gansterer),
    • build fixes: Windows build (Rob Richards), Mingw compilation (Igor Zlatkovic), Windows Makefile (Igor), gcc warnings (Kasimier and andriy@google.com), use gcc weak references to pthread to avoid the - pthread dependancy on Linux, compilation problem (Steve Nairn), compiling + pthread dependency on Linux, compilation problem (Steve Nairn), compiling of subset (Morten Welinder), IPv6/ss_family compilation (William Brack), compilation when disabling parts of the library, standalone test distribution.
    • @@ -1770,7 +2022,7 @@ Gansterer),
      Linux/ELF/gcc4
    • bug fixes: schemas type decimal fixups (William Brack), xmmlint return code (Gerry Murphy), small schemas fixes (Matthew Burgess and GUY - Fabrice), workaround "DAV:" namespace brokeness in c14n (Aleksey Sanin), + Fabrice), workaround "DAV:" namespace brokenness in c14n (Aleksey Sanin), segfault in Schemas (Kasimier Buchcik), Schemas attribute validation (Kasimier), Prop related functions and xmlNewNodeEatName (Rob Richards), HTML serialization of name attribute on a elements, Python error handlers @@ -1787,7 +2039,7 @@ Gansterer),
      Bakefile support (Francesco Montorsi), Windows compilation (Joel Reed), some gcc4 fixes, HP-UX portability fixes (Rick Jones).
    • bug fixes: xmlSchemaElementDump namespace (Kasimier Buchcik), push and - xmlreader stopping on non-fatal errors, thread support for dictionnaries + xmlreader stopping on non-fatal errors, thread support for dictionaries reference counting (Gary Coady), internal subset and push problem, URL saved in xmlCopyDoc, various schemas bug fixes (Kasimier), Python paths fixup (Stephane Bidoul), xmlGetNodePath and namespaces, xmlSetNsProp fix @@ -1838,7 +2090,7 @@ Gansterer),
    • bug fixes: problem with XML::Libxml reported by Petr Pajas, encoding conversion functions return values, UTF-8 bug affecting XPath reported by Markus Bertheau, catalog problem with NULL entries (William Brack)
    • -
    • documentation: fix to xmllint man page, some API function descritpion +
    • documentation: fix to xmllint man page, some API function description were updated.
    • improvements: DTD validation APIs provided at the Python level (Brent Hendricks)
    • @@ -1964,12 +2216,12 @@ Gansterer),
      William), xmlUriEscape (Mark Vakoc), a Relax-NG notAllowed problem (with William), Relax-NG name classes compares (William), XInclude duplicate fallback (William), external DTD encoding detection (William), a DTD - validation bug (William), xmlReader Close() fix, recusive extention + validation bug (William), xmlReader Close() fix, recursive extension schemas
    • improvements: use xmlRead* APIs in test tools (Mark Vakoc), indenting save optimization, better handle IIS broken HTTP redirect behaviour (Ian Hummel), HTML parser frameset (James Bursa), libxml2-python RPM - dependancy, XML Schemas union support (Kasimier Buchcik), warning removal + dependency, XML Schemas union support (Kasimier Buchcik), warning removal clanup (William), keep ChangeLog compressed when installing from RPMs
    • documentation: examples and xmlDocDumpMemory docs (John Fleck), new example (load, xpath, modify, save), xmlCatalogDump() comments,
    • @@ -2014,7 +2266,7 @@ Gansterer),
      William) reported by Yuuichi Teranishi
    • bugfixes: make test and path issues, xmlWriter attribute serialization (William Brack), xmlWriter indentation (William), schemas validation - (Eric Haszlakiewicz), XInclude dictionnaries issues (William and Oleg + (Eric Haszlakiewicz), XInclude dictionaries issues (William and Oleg Paraschenko), XInclude empty fallback (William), HTML warnings (William), XPointer in XInclude (William), Python namespace serialization, isolat1ToUTF8 bound error (Alfred Mickautsch), output of parameter @@ -2030,10 +2282,10 @@ Gansterer),
    • Windows compilation: mingw, msys (Mikhail Grushinskiy), function prototype (Cameron Johnson), MSVC6 compiler warnings, _WINSOCKAPI_ patch
    • -
    • Parsers: added xmlByteConsumed(ctxt) API to get the byte offest in +
    • Parsers: added xmlByteConsumed(ctxt) API to get the byte offset in input.

    2.6.5: Jan 25 2004

      -
    • Bugfixes: dictionnaries for schemas (William Brack), regexp segfault +
    • Bugfixes: dictionaries for schemas (William Brack), regexp segfault (William), xs:all problem (William), a number of XPointer bugfixes (William), xmllint error go to stderr, DTD validation problem with namespace, memory leak (William), SAX1 cleanup and minimal options fixes @@ -2807,7 +3059,7 @@ it's actually not compiled in by default. The real fixes are: also contains numerous fixes and enhancements:
      • added xmlStopParser() to stop parsing
      • -
      • improved a lot parsing speed when there is large CDATA blocs
      • +
      • improved a lot parsing speed when there is large CDATA blocks
      • includes XPath patches provided by Picdar Technology
      • tried to fix as much as possible DTD validation and namespace related problems
      • diff --git a/doc/xml.html b/doc/xml.html index 0a16f2c9..92360d84 100644 --- a/doc/xml.html +++ b/doc/xml.html @@ -709,6 +709,261 @@ to the GIT code base.

        Here is the list of public releases:

        +

        v2.9.11: May 13 2021

        +
          +
        • Security:
          + Patch for security issue CVE-2021-3541 (Daniel Veillard)
          +
        • + +
        • Documentation:
          + Clarify xmlNewDocProp documentation (Nick Wellnhofer)
          +
        • + +
        • Portability:
          + CMake: Only add postfixes if MSVC (Christopher Degawa),
          + Fix XPath NaN/Inf for older GCC versions (Nick Wellnhofer),
          + Use CMake PROJECT_VERSION (Markus Rickert),
          + Fix warnings in libxml.m4 with autoconf 2.70+. (Simon Josefsson),
          + Add CI for CMake on MSVC (Markus Rickert),
          + Update minimum required CMake version (Markus Rickert),
          + Add variables for configured options to CMake config files (Markus Rickert),
          + Check if variables exist when defining targets (Markus Rickert),
          + Check if target exists when reading target properties (Markus Rickert),
          + Add xmlcatalog target and definition to config files (Markus Rickert),
          + Remove include directories for link-only dependencies (Markus Rickert),
          + Fix ICU build in CMake (Markus Rickert),
          + Configure pkgconfig, xml2-config, and xml2Conf.sh file (Markus Rickert),
          + Update CMake config files (Markus Rickert),
          + Add xmlcatalog and xmllint to CMake export (Markus Rickert),
          + Simplify xmlexports.h (Nick Wellnhofer),
          + Require dependencies based on enabled CMake options (Markus Rickert),
          + Use NAMELINK_COMPONENT in CMake install (Markus Rickert),
          + Add CMake files to EXTRA_DIST (Markus Rickert),
          + Add missing compile definition for static builds to CMake (Markus Rickert),
          + Add CI for CMake on Linux and MinGW (Markus Rickert),
          + Fix variable name in win32/configure.js (Nick Wellnhofer),
          + Fix version parsing in win32/configure.js (Nick Wellnhofer),
          + Fix autotools warnings (Nick Wellnhofer),
          + Update config.h.cmake.in (Markus Rickert),
          + win32: allow passing *FLAGS on command line (Michael Stahl),
          + Configure file xmlwin32version.h.in on MSVC (Markus Rickert),
          + List headers individually (Markus Rickert),
          + Add CMake build files (Markus Rickert),
          + Parenthesize Py<type>_Check() in ifs (Miro Hrončok),
          + Minor fixes to configure.js (Nick Wellnhofer)
          +
        • + +
        • Bug Fixes:
          + Fix null deref in legacy SAX1 parser (Nick Wellnhofer),
          + Fix handling of unexpected EOF in xmlParseContent (Nick Wellnhofer),
          + Fix line numbers in error messages for mismatched tags (Nick Wellnhofer),
          + Fix htmlTagLookup (Nick Wellnhofer),
          + Propagate error in xmlParseElementChildrenContentDeclPriv (Nick Wellnhofer),
          + Fix user-after-free with `xmllint --xinclude --dropdtd` (Nick Wellnhofer),
          + Fix dangling pointer with `xmllint --dropdtd` (Nick Wellnhofer),
          + Validate UTF8 in xmlEncodeEntities (Joel Hockey),
          + Fix use-after-free with `xmllint --html --push` (Nick Wellnhofer),
          + Allow FP division by zero in xmlXPathInit (Nick Wellnhofer),
          + Fix xmlGetNodePath with invalid node types (Nick Wellnhofer),
          + Fix exponential behavior with recursive entities (Nick Wellnhofer),
          + Fix quadratic behavior when looking up xml:* attributes (Nick Wellnhofer),
          + Fix slow parsing of HTML with encoding errors (Nick Wellnhofer),
          + Fix null deref introduced with previous commit (Nick Wellnhofer),
          + Check for invalid redeclarations of predefined entities (Nick Wellnhofer),
          + Add the copy of type from original xmlDoc in xmlCopyDoc() (SVGAnimate),
          + parser.c: shrink the input buffer when appropriate (Mike Dalessio),
          + Fix infinite loop in HTML parser introduced with recent commits (Nick Wellnhofer),
          + Fix quadratic runtime when parsing CDATA sections (Nick Wellnhofer),
          + Fix timeout when handling recursive entities (Nick Wellnhofer),
          + Fix memory leak in xmlParseElementMixedContentDecl (Nick Wellnhofer),
          + Fix null deref in xmlStringGetNodeList (Nick Wellnhofer),
          + use new htmlParseLookupCommentEnd to find comment ends (Mike Dalessio),
          + htmlParseComment: treat `--!>` as if it closed the comment (Mike Dalessio),
          + Fix integer overflow in xmlSchemaGetParticleTotalRangeMin (Nick Wellnhofer),
          + encoding: fix memleak in xmlRegisterCharEncodingHandler() (Xiaoming Ni),
          + xmlschemastypes.c: xmlSchemaGetFacetValueAsULong add, check "facet->val" (Xiaoming Ni),
          + Fix null pointer deref in xmlXPtrRangeInsideFunction (Nick Wellnhofer),
          + Fix quadratic runtime in HTML push parser with null bytes (Nick Wellnhofer),
          + Avoid quadratic checking of identity-constraints (Michael Matz),
          + Fix building with ICU 68. (Frederik Seiffert),
          + Convert python/libxml.c to PY_SSIZE_T_CLEAN (Victor Stinner),
          + Fix xmlURIEscape memory leaks. (Elliott Hughes),
          + Avoid call stack overflow with XML reader and recursive XIncludes (Nick Wellnhofer),
          + Fix caret in regexp character group (Nick Wellnhofer),
          + parser.c: xmlParseCharData peek behavior fixed wrt newlines (Mike Dalessio),
          + Fix memory leaks in XPointer string-range function (Nick Wellnhofer),
          + Fix use-after-free when XIncluding text from Reader (Nick Wellnhofer),
          + Fix SEGV in xmlSAXParseFileWithData (yanjinjq),
          + Fix null deref in XPointer expression error path (Nick Wellnhofer),
          + Don't call xmlXPathInit directly (Nick Wellnhofer),
          + Fix cleanup of attributes in XML reader (Nick Wellnhofer),
          + Fix double free in XML reader with XIncludes (Nick Wellnhofer),
          + Fix memory leak in xmlXIncludeAddNode error paths (Nick Wellnhofer),
          + Revert "Fix quadratic runtime in xi:fallback processing" (Nick Wellnhofer),
          + Fix error reporting with xi:fallback (Nick Wellnhofer),
          + Fix quadratic runtime in xi:fallback processing (Nick Wellnhofer),
          + Fix corner case with empty xi:fallback (Nick Wellnhofer),
          + Fix XInclude regression introduced with recent commit (Nick Wellnhofer),
          + Fix memory leak in runtest.c (Nick Wellnhofer),
          + Make "xmllint --push --recovery" work (Nick Wellnhofer),
          + Revert "Do not URI escape in server side includes" (Nick Wellnhofer),
          + Fix column number accounting in xmlParse*NameAndCompare (Nick Wellnhofer),
          + Stop counting nbChars in parser context (Nick Wellnhofer),
          + Fix out-of-bounds read with 'xmllint --htmlout' (Nick Wellnhofer),
          + Fix exponential runtime and memory in xi:fallback processing (Nick Wellnhofer),
          + Don't process siblings of root in xmlXIncludeProcess (Nick Wellnhofer),
          + Don't recurse into xi:include children in xmlXIncludeDoProcess (Nick Wellnhofer),
          + Fix memory leak in xmlXIncludeIncludeNode error paths (Nick Wellnhofer),
          + Check for custom free function in global destructor (Nick Wellnhofer),
          + Fix integer overflow when comparing schema dates (Nick Wellnhofer),
          + Fix exponential runtime in xmlFARecurseDeterminism (Nick Wellnhofer),
          + Don't try to handle namespaces when building HTML documents (Nick Wellnhofer),
          + Fix several quadratic runtime issues in HTML push parser (Nick Wellnhofer),
          + Fix quadratic runtime when push parsing HTML start tags (Nick Wellnhofer),
          + Reset XML parser input before reporting errors (David Kilzer),
          + Fix quadratic runtime when push parsing HTML entity refs (Nick Wellnhofer),
          + Fix HTML push parser lookahead (Nick Wellnhofer),
          + Make htmlCurrentChar always translate U+0000 (Nick Wellnhofer),
          + Fix UTF-8 decoder in HTML parser (Nick Wellnhofer),
          + Fix quadratic runtime when parsing HTML script content (Nick Wellnhofer),
          + Reset HTML parser input before reporting error (Nick Wellnhofer),
          + Fix more quadratic runtime issues in HTML push parser (Nick Wellnhofer),
          + Fix regression introduced with 477c7f6a (Nick Wellnhofer),
          + Fix quadratic runtime in HTML parser (Nick Wellnhofer),
          + Reset HTML parser input before reporting encoding error (Nick Wellnhofer),
          + Fix integer overflow in xmlFAParseQuantExact (Nick Wellnhofer),
          + Fix return value of xmlC14NDocDumpMemory (Nick Wellnhofer),
          + Don't follow next pointer on documents in xmlXPathRunStreamEval (Nick Wellnhofer),
          + Fix integer overflow in _xmlSchemaParseGYear (Nick Wellnhofer),
          + Fix integer overflow when parsing {min,max}Occurs (Nick Wellnhofer),
          + Fix another memory leak in xmlSchemaValAtomicType (Nick Wellnhofer),
          + Fix unsigned integer overflow in htmlParseTryOrFinish (Nick Wellnhofer),
          + Fix integer overflow in htmlParseCharRef (Nick Wellnhofer),
          + Fix undefined behavior in UTF16LEToUTF8 (Nick Wellnhofer),
          + Fix return value of xmlCharEncOutput (Nick Wellnhofer),
          + Never expand parameter entities in text declaration (Nick Wellnhofer),
          + Fix undefined behavior in xmlXPathTryStreamCompile (Nick Wellnhofer),
          + Fix use-after-free with validating reader (Nick Wellnhofer),
          + xmlParseBalancedChunkMemory must not be called with NULL doc (Nick Wellnhofer),
          + Revert "Fix memory leak in xmlParseBalancedChunkMemoryRecover" (Nick Wellnhofer),
          + Fix memory leak in xmlXIncludeLoadDoc error path (Nick Wellnhofer),
          + Make schema validation fail with multiple top-level elements (Nick Wellnhofer),
          + Call xmlCleanupParser on ELF destruction (Samuel Thibault),
          + Fix copying of entities in xmlParseReference (Nick Wellnhofer),
          + Fix memory leak in xmlSchemaValidateStream (Zhipeng Xie),
          + Fix xmlSchemaGetCanonValue formatting for date and dateTime (Kevin Puetz),
          + Fix memory leak when shared libxml.dll is unloaded (Kevin Puetz),
          + Fix potentially-uninitialized critical section in Win32 DLL builds (Kevin Puetz),
          + Fix integer overflow in xmlBufferResize (Nick Wellnhofer),
          + Check for overflow when allocating two-dimensional arrays (Nick Wellnhofer),
          + Remove useless comparisons (Nick Wellnhofer),
          + Fix overflow check in xmlNodeDump (Nick Wellnhofer),
          + Fix infinite loop in xmlStringLenDecodeEntities (Zhipeng Xie),
          + Fix freeing of nested documents (Nick Wellnhofer),
          + Fix more memory leaks in error paths of XPath parser (Nick Wellnhofer),
          + Fix memory leaks of encoding handlers in xmlsave.c (Nick Wellnhofer),
          + Fix xml2-config error code (Nick Wellnhofer),
          + Fix memory leak in error path of XPath expr parser (Nick Wellnhofer),
          + Fix overflow handling in xmlBufBackToBuffer (Nick Wellnhofer),
          + Null pointer handling in catalog.c (raniervf),
          + xml2-config.in: fix regressions introduced by commit 2f2bf4b2c (Dmitry V. Levin)
          +
        • + +
        • Improvements:
          + Store per-element parser state in a struct (Nick Wellnhofer),
          + update for xsd:language type check (PaulHiggs),
          + Update INSTALL.libxml2 (Nick Wellnhofer),
          + Fix include order in c14n.h (Nick Wellnhofer),
          + Fix duplicate xmlStrEqual calls in htmlParseEndTag (Nick Wellnhofer),
          + Speed up htmlCheckAutoClose (Nick Wellnhofer),
          + Speed up htmlTagLookup (Nick Wellnhofer),
          + Stop checking attributes for UTF-8 validity (Nick Wellnhofer),
          + Reduce some fuzzer timeouts (Nick Wellnhofer),
          + Only run a few CI tests unless scheduled (Nick Wellnhofer),
          + Improve fuzzer stability (Nick Wellnhofer),
          + Check for feature flags in fuzzer tests (Nick Wellnhofer),
          + Another attempt at improving fuzzer stability (Nick Wellnhofer),
          + Revert "Improve HTML fuzzer stability" (Nick Wellnhofer),
          + Add charset names to fuzzing dictionaries (Nick Wellnhofer),
          + Improve HTML fuzzer stability (Nick Wellnhofer),
          + Add CI for MSVC x86 (Markus Rickert),
          + Add a flag to not output anything when xmllint succeeded (hhb),
          + Speed up HTML fuzzer (Nick Wellnhofer),
          + Remove unused encoding parameter of HTML output functions (Nick Wellnhofer),
          + Handle malloc failures in fuzzing code (Nick Wellnhofer),
          + add test coverage for incorrectly-closed comments (Mike Dalessio),
          + Enforce maximum length of fuzz input (Nick Wellnhofer),
          + Remove temporary members from struct _xmlXPathContext (Nick Wellnhofer),
          + Build the Python extension with PY_SSIZE_T_CLEAN (Victor Stinner),
          + Add CI test for Python 3 (Nick Wellnhofer),
          + Add fuzzing dictionaries to EXTRA_DIST (Nick Wellnhofer),
          + Add 'fuzz' subdirectory to DIST_SUBDIRS (Nick Wellnhofer),
          + Allow port numbers up to INT_MAX (Nick Wellnhofer),
          + Handle dumps of corrupted documents more gracefully (Nick Wellnhofer),
          + Limit size of free lists in XML reader when fuzzing (Nick Wellnhofer),
          + Hardcode maximum XPath recursion depth (Nick Wellnhofer),
          + Pass URL of main entity in XML fuzzer (Nick Wellnhofer),
          + Consolidate seed corpus generation (Nick Wellnhofer),
          + Test fuzz targets with dummy driver (Nick Wellnhofer),
          + Fix regression introduced with commit d88df4b (Nick Wellnhofer),
          + Fix regression introduced with commit 74dcc10b (Nick Wellnhofer),
          + Add TODO comment in xinclude.c (Nick Wellnhofer),
          + Stop using maxParserDepth in xpath.c (Nick Wellnhofer),
          + Remove dead code in xinclude.c (Nick Wellnhofer),
          + Don't add formatting newlines to XInclude nodes (Nick Wellnhofer),
          + Don't use SAX1 if all element handlers are NULL (Nick Wellnhofer),
          + Remove unneeded progress checks in HTML parser (Nick Wellnhofer),
          + Use strcmp when fuzzing (Nick Wellnhofer),
          + Fix XPath fuzzer (Nick Wellnhofer),
          + Fuzz XInclude engine (Nick Wellnhofer),
          + Add XPath and XPointer fuzzer (Nick Wellnhofer),
          + Update fuzzing code (Nick Wellnhofer),
          + More *NodeDumpOutput fixes (Nick Wellnhofer),
          + Fix *NodeDumpOutput functions (Nick Wellnhofer),
          + Make xmlNodeDumpOutputInternal non-recursive (Nick Wellnhofer),
          + Make xhtmlNodeDumpOutput non-recursive (Nick Wellnhofer),
          + Make htmlNodeDumpFormatOutput non-recursive (Nick Wellnhofer),
          + Fix .gitattributes (Nick Wellnhofer),
          + Rework control flow in htmlCurrentChar (Nick Wellnhofer),
          + Make 'xmllint --html --push -' read from stdin (Nick Wellnhofer),
          + Remove misleading comments in xpath.c (Nick Wellnhofer),
          + Update to Devhelp index file format version 2 (Andre Klapper),
          + Set project language to C (Markus Rickert),
          + Add variable for working directory of XML Conformance Test Suite (Markus Rickert),
          + Add additional tests and XML Conformance Test Suite (Markus Rickert),
          + Add command line option for temp directory in runtest (Markus Rickert),
          + Ensure LF line endings for test files (Markus Rickert),
          + Enable runtests and testThreads (Markus Rickert),
          + Limit regexp nesting depth (Nick Wellnhofer),
          + Fix return values and documentation in encoding.c (Nick Wellnhofer),
          + Add regexp regression tests (David Kilzer),
          + Report error for invalid regexp quantifiers (Nick Wellnhofer),
          + Fix rebuilding docs, by hiding __attribute__((...)) behind a macro. (Martin Vidner),
          + Copy xs:duration parser from libexslt (Nick Wellnhofer),
          + Fuzz target for XML Schemas (Nick Wellnhofer),
          + Move entity recorder to fuzz.c (Nick Wellnhofer),
          + Fuzz target for HTML parser (Nick Wellnhofer),
          + Update GitLab CI container (Nick Wellnhofer),
          + Add options file for xml fuzzer (Nick Wellnhofer),
          + Add a couple of libFuzzer targets (Nick Wellnhofer),
          + Guard new calls to xmlValidatePopElement in xml_reader.c (Daniel Cheng),
          + Add LIBXML_VALID_ENABLED to xmlreader (Łukasz Wojniłowicz),
          + Fix typos (Nick Wellnhofer),
          + Disable LeakSanitizer (Nick Wellnhofer),
          + Stop calling SAX getEntity handler from XMLReader (Nick Wellnhofer),
          + Add test case for recursive external parsed entities (Nick Wellnhofer),
          + Enable error tests with entity substitution (Nick Wellnhofer),
          + Don't load external entity from xmlSAX2GetEntity (Nick Wellnhofer),
          + Merge code paths loading external entities (Nick Wellnhofer),
          + Copy some XMLReader option flags to parser context (Nick Wellnhofer),
          + Add xmlPopOutputCallbacks (Nick Wellnhofer),
          + Updated Python test reader2.py (Pieter van Oostrum),
          + Updated python/tests/tstLastError.py (Pieter van Oostrum),
          + Use random seed in xmlDictComputeFastKey (Ranier Vilela),
          + Enable more undefined behavior sanitizers (Nick Wellnhofer)
          +
        • +
        +

        v2.9.10: Oct 30 2019

        • Documentation:
          diff --git a/testapi.c b/testapi.c index 8a4e23e3..6f19c6fc 100644 --- a/testapi.c +++ b/testapi.c @@ -2843,7 +2843,7 @@ test_htmlDocContentDumpFormatOutput(void) { int n_buf; xmlDocPtr cur; /* the document */ int n_cur; - char * encoding; /* the encoding string */ + char * encoding; /* the encoding string (unused) */ int n_encoding; int format; /* should formatting spaces been added */ int n_format; @@ -2896,7 +2896,7 @@ test_htmlDocContentDumpOutput(void) { int n_buf; xmlDocPtr cur; /* the document */ int n_cur; - char * encoding; /* the encoding string */ + char * encoding; /* the encoding string (unused) */ int n_encoding; for (n_buf = 0;n_buf < gen_nb_xmlOutputBufferPtr;n_buf++) { @@ -3397,7 +3397,7 @@ test_htmlNodeDumpFormatOutput(void) { int n_doc; xmlNodePtr cur; /* the current node */ int n_cur; - char * encoding; /* the encoding string */ + char * encoding; /* the encoding string (unused) */ int n_encoding; int format; /* should formatting spaces been added */ int n_format; @@ -3457,7 +3457,7 @@ test_htmlNodeDumpOutput(void) { int n_doc; xmlNodePtr cur; /* the current node */ int n_cur; - char * encoding; /* the encoding string */ + char * encoding; /* the encoding string (unused) */ int n_encoding; for (n_buf = 0;n_buf < gen_nb_xmlOutputBufferPtr;n_buf++) { @@ -13611,7 +13611,7 @@ test_xmlParseBalancedChunkMemory(void) { #ifdef LIBXML_SAX1_ENABLED int mem_base; int ret_val; - xmlDocPtr doc; /* the document the chunk pertains to */ + xmlDocPtr doc; /* the document the chunk pertains to (must not be NULL) */ int n_doc; xmlSAXHandlerPtr sax; /* the SAX handler block (possibly NULL) */ int n_sax; @@ -13687,7 +13687,7 @@ test_xmlParseBalancedChunkMemoryRecover(void) { #ifdef LIBXML_SAX1_ENABLED int mem_base; int ret_val; - xmlDocPtr doc; /* the document the chunk pertains to */ + xmlDocPtr doc; /* the document the chunk pertains to (must not be NULL) */ int n_doc; xmlSAXHandlerPtr sax; /* the SAX handler block (possibly NULL) */ int n_sax; @@ -29237,6 +29237,33 @@ test_xmlPopInputCallbacks(void) { } +static int +test_xmlPopOutputCallbacks(void) { + int test_ret = 0; + +#if defined(LIBXML_OUTPUT_ENABLED) + int mem_base; + int ret_val; + + mem_base = xmlMemBlocks(); + + ret_val = xmlPopOutputCallbacks(); + desret_int(ret_val); + call_tests++; + xmlResetLastError(); + if (mem_base != xmlMemBlocks()) { + printf("Leak of %d blocks found in xmlPopOutputCallbacks", + xmlMemBlocks() - mem_base); + test_ret++; + printf("\n"); + } + function_tests++; +#endif + + return(test_ret); +} + + static int test_xmlRegisterDefaultInputCallbacks(void) { int test_ret = 0; @@ -29313,7 +29340,7 @@ static int test_xmlIO(void) { int test_ret = 0; - if (quiet == 0) printf("Testing xmlIO : 40 of 50 functions ...\n"); + if (quiet == 0) printf("Testing xmlIO : 41 of 51 functions ...\n"); test_ret += test_xmlAllocOutputBuffer(); test_ret += test_xmlAllocParserInputBuffer(); test_ret += test_xmlCheckFilename(); @@ -29354,6 +29381,7 @@ test_xmlIO(void) { test_ret += test_xmlParserInputBufferPush(); test_ret += test_xmlParserInputBufferRead(); test_ret += test_xmlPopInputCallbacks(); + test_ret += test_xmlPopOutputCallbacks(); test_ret += test_xmlRegisterDefaultInputCallbacks(); test_ret += test_xmlRegisterDefaultOutputCallbacks(); test_ret += test_xmlRegisterHTTPPostCallbacks(); @@ -34240,27 +34268,27 @@ test_xmlSaveTree(void) { long ret_val; xmlSaveCtxtPtr ctxt; /* a document saving context */ int n_ctxt; - xmlNodePtr node; /* the top node of the subtree to save */ - int n_node; + xmlNodePtr cur; /* */ + int n_cur; for (n_ctxt = 0;n_ctxt < gen_nb_xmlSaveCtxtPtr;n_ctxt++) { - for (n_node = 0;n_node < gen_nb_xmlNodePtr;n_node++) { + for (n_cur = 0;n_cur < gen_nb_xmlNodePtr;n_cur++) { mem_base = xmlMemBlocks(); ctxt = gen_xmlSaveCtxtPtr(n_ctxt, 0); - node = gen_xmlNodePtr(n_node, 1); + cur = gen_xmlNodePtr(n_cur, 1); - ret_val = xmlSaveTree(ctxt, node); + ret_val = xmlSaveTree(ctxt, cur); desret_long(ret_val); call_tests++; des_xmlSaveCtxtPtr(n_ctxt, ctxt, 0); - des_xmlNodePtr(n_node, node, 1); + des_xmlNodePtr(n_cur, cur, 1); xmlResetLastError(); if (mem_base != xmlMemBlocks()) { printf("Leak of %d blocks found in xmlSaveTree", xmlMemBlocks() - mem_base); test_ret++; printf(" %d", n_ctxt); - printf(" %d", n_node); + printf(" %d", n_cur); printf("\n"); } } -- cgit v1.2.1