diff --git a/ChangeLog b/ChangeLog
index de8ad9b3..4804b1c0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+Fri Apr 1 16:07:59 CEST 2005 Daniel Veillard
+
+ * doc/apibuild.py doc/elfgcchack.xsl: revamped the elfgcchack.h
+ format to cope with gcc4 change of aliasing allowed scopes, had
+ to add extra informations to doc/libxml2-api.xml to separate
+ the header from the c module source.
+ * *.c: updated all c library files to add a #define bottom_xxx
+ and reimport elfgcchack.h thereafter, and a bit of cleanups.
+ * doc//* testapi.c: regenerated when rebuilding the API
+
Thu Mar 31 17:20:32 CEST 2005 Daniel Veillard
* xmlsave.c: fixed bug reported by Petr Pajas, in the absence of
diff --git a/DOCBparser.c b/DOCBparser.c
index ccb577fd..35737433 100644
--- a/DOCBparser.c
+++ b/DOCBparser.c
@@ -300,4 +300,6 @@ docbParseFile(const char *filename ATTRIBUTE_UNUSED,
return (xmlParseFile(filename));
}
+#define bottom_DOCBparser
+#include "elfgcchack.h"
#endif /* LIBXML_DOCB_ENABLED */
diff --git a/HTMLparser.c b/HTMLparser.c
index 40a685c7..3e1e75ae 100644
--- a/HTMLparser.c
+++ b/HTMLparser.c
@@ -6173,4 +6173,6 @@ htmlCtxtReadIO(htmlParserCtxtPtr ctxt, xmlInputReadCallback ioread,
return (htmlDoRead(ctxt, URL, encoding, options, 1));
}
+#define bottom_HTMLparser
+#include "elfgcchack.h"
#endif /* LIBXML_HTML_ENABLED */
diff --git a/HTMLtree.c b/HTMLtree.c
index 39137b71..de086db4 100644
--- a/HTMLtree.c
+++ b/HTMLtree.c
@@ -1188,4 +1188,6 @@ htmlSaveFileEnc(const char *filename, xmlDocPtr cur, const char *encoding) {
#endif /* LIBXML_OUTPUT_ENABLED */
+#define bottom_HTMLtree
+#include "elfgcchack.h"
#endif /* LIBXML_HTML_ENABLED */
diff --git a/SAX.c b/SAX.c
index 9d9afa16..8e5d460c 100644
--- a/SAX.c
+++ b/SAX.c
@@ -175,4 +175,6 @@ initdocbDefaultSAXHandler(xmlSAXHandlerV1 *hdlr)
#endif /* LIBXML_SAX1_ENABLED */
+#define bottom_SAX
+#include "elfgcchack.h"
#endif /* LIBXML_LEGACY_ENABLED */
diff --git a/SAX2.c b/SAX2.c
index cf8a6151..6c866afc 100644
--- a/SAX2.c
+++ b/SAX2.c
@@ -2755,3 +2755,5 @@ docbDefaultSAXHandlerInit(void)
}
#endif /* LIBXML_DOCB_ENABLED */
+#define bottom_SAX2
+#include "elfgcchack.h"
diff --git a/c14n.c b/c14n.c
index c303c2e8..0088d160 100644
--- a/c14n.c
+++ b/c14n.c
@@ -1923,4 +1923,6 @@ xmlC11NNormalizeString(const xmlChar * input,
return (buffer);
}
#endif /* LIBXML_OUTPUT_ENABLED */
+#define bottom_c14n
+#include "elfgcchack.h"
#endif /* LIBXML_C14N_ENABLED */
diff --git a/catalog.c b/catalog.c
index 3168efd1..202c288f 100644
--- a/catalog.c
+++ b/catalog.c
@@ -3787,4 +3787,6 @@ xmlCatalogGetPublic(const xmlChar *pubID) {
return(NULL);
}
+#define bottom_catalog
+#include "elfgcchack.h"
#endif /* LIBXML_CATALOG_ENABLED */
diff --git a/chvalid.c b/chvalid.c
index 9a2c4077..227aeba1 100755
--- a/chvalid.c
+++ b/chvalid.c
@@ -329,3 +329,5 @@ xmlIsPubidChar(unsigned int ch) {
return(xmlIsPubidCharQ(ch));
}
+#define bottom_chvalid
+#include "elfgcchack.h"
diff --git a/debugXML.c b/debugXML.c
index a014f009..20190ad2 100644
--- a/debugXML.c
+++ b/debugXML.c
@@ -3202,4 +3202,6 @@ xmlShell(xmlDocPtr doc, char *filename, xmlShellReadlineFunc input,
}
#endif /* LIBXML_XPATH_ENABLED */
+#define bottom_debugXML
+#include "elfgcchack.h"
#endif /* LIBXML_DEBUG_ENABLED */
diff --git a/dict.c b/dict.c
index c8e06d35..3b4054f2 100644
--- a/dict.c
+++ b/dict.c
@@ -897,3 +897,5 @@ xmlDictSize(xmlDictPtr dict) {
}
+#define bottom_dict
+#include "elfgcchack.h"
diff --git a/doc/APIchunk0.html b/doc/APIchunk0.html
index 89cf6371..93450098 100644
--- a/doc/APIchunk0.html
+++ b/doc/APIchunk0.html
@@ -43,35 +43,6 @@
ALLxmlAutomataNewAllTrans
ANYxmlIsMixedElement
xmlParseElementContentDecl
-APILIBXML_TREE_ENABLED
-xmlBufferAdd
-xmlBufferAddHead
-xmlBufferCCat
-xmlBufferCat
-xmlInputCloseCallback
-xmlInputMatchCallback
-xmlInputOpenCallback
-xmlInputReadCallback
-xmlLoadExternalEntity
-xmlOutputCloseCallback
-xmlOutputMatchCallback
-xmlOutputOpenCallback
-xmlOutputWriteCallback
-xmlRelaxNGValidateDoc
-xmlSchemaGetCanonValue
-xmlSchemaSetValidOptions
-xmlSchemaValPredefTypeNode
-xmlSchemaValPredefTypeNodeNoNorm
-xmlSchemaValidateDoc
-xmlSchemaValidateFacet
-xmlSchemaValidateLengthFacet
-xmlSchemaValidateOneElement
-xmlSchemaValidatePredefinedType
-xmlSchemaValidateStream
-xmlValidateNCName
-xmlValidateNMToken
-xmlValidateName
-xmlValidateQName
APIsLIBXML_LEGACY_ENABLED
ARRAYxmlStrlen
xmlUTF8Strsize
diff --git a/doc/APIchunk1.html b/doc/APIchunk1.html
index eb14d203..40e070e6 100644
--- a/doc/APIchunk1.html
+++ b/doc/APIchunk1.html
@@ -172,6 +172,7 @@
xmlParseCharRef
CharactersxmlParseCharRef
CheckaxmlSchemaValidateLengthFacet
+xmlSchemaValidateLengthFacetWhtsp
CheckshtmlAttrAllowed
htmlElementAllowedHere
htmlElementAllowedHereDesc
diff --git a/doc/APIchunk10.html b/doc/APIchunk10.html
index b1c4503d..86b5d92a 100644
--- a/doc/APIchunk10.html
+++ b/doc/APIchunk10.html
@@ -488,12 +488,14 @@
xmlSchemaValPredefTypeNode
xmlSchemaValPredefTypeNodeNoNorm
xmlSchemaValidateLengthFacet
+xmlSchemaValidateLengthFacetWhtsp
xmlSchemaValidatePredefinedType
xmlTextReaderByteConsumed
concatxmlXPathConcatFunction
concatenatedxmlStrcat
concatenationxmlXPathConcatFunction
conditionxmlSchemaValidateFacet
+xmlSchemaValidateFacetWhtsp
conditionalSectxmlParseExternalSubset
configuredDEBUG_MEMORY
DEBUG_MEMORY_LOCATION
diff --git a/doc/APIchunk13.html b/doc/APIchunk13.html
index 999fd9c4..3ba2e027 100644
--- a/doc/APIchunk13.html
+++ b/doc/APIchunk13.html
@@ -46,7 +46,9 @@
xmlSchemaGetFacetValueAsULong
xmlSchemaIsBuiltInTypeFacet
xmlSchemaValidateFacet
+xmlSchemaValidateFacetWhtsp
xmlSchemaValidateLengthFacet
+xmlSchemaValidateLengthFacetWhtsp
xmlSchemaValidateListSimpleTypeFacet
facetsXML_SCHEMAS_TYPE_FACETSNEEDVALUE
xmlSchemaCheckFacet
diff --git a/doc/APIchunk15.html b/doc/APIchunk15.html
index a52bda69..184dff3c 100644
--- a/doc/APIchunk15.html
+++ b/doc/APIchunk15.html
@@ -476,6 +476,7 @@
xmlGetFeaturesList
xmlNewIOInputStream
xmlParserAddNodeInfo
+xmlSchemaValidateFacetWhtsp
xmlStrPrintf
xmlStrVPrintf
xmlTextMerge
diff --git a/doc/APIchunk16.html b/doc/APIchunk16.html
index 4a485bd1..a979b012 100644
--- a/doc/APIchunk16.html
+++ b/doc/APIchunk16.html
@@ -181,10 +181,13 @@
xmlXPathDebugDumpCompExpr
xmlXPathDebugDumpObject
lexicalxmlParseDefaultDecl
+xmlSchemaGetCanonValue
xmlSchemaValPredefTypeNode
xmlSchemaValPredefTypeNodeNoNorm
xmlSchemaValidateFacet
+xmlSchemaValidateFacetWhtsp
xmlSchemaValidateLengthFacet
+xmlSchemaValidateLengthFacetWhtsp
xmlSchemaValidateListSimpleTypeFacet
xmlSchemaValidatePredefinedType
xmlValidateNCName
diff --git a/doc/APIchunk17.html b/doc/APIchunk17.html
index 1d2a1787..a66953a0 100644
--- a/doc/APIchunk17.html
+++ b/doc/APIchunk17.html
@@ -133,6 +133,7 @@
xmlStrncasecmp
xmlStrncmp
maxLengthxmlSchemaValidateLengthFacet
+xmlSchemaValidateLengthFacetWhtsp
maximalxmlAutomataNewCounter
maximumxmlAutomataNewCountTrans
xmlAutomataNewCountTrans2
@@ -211,6 +212,7 @@
mightxmlNewTextChild
migratexmlEncodeEntities
minLengthxmlSchemaValidateLengthFacet
+xmlSchemaValidateLengthFacetWhtsp
minimalxmlAutomataNewCounter
minimumxmlAutomataNewCountTrans
xmlAutomataNewCountTrans2
diff --git a/doc/APIchunk18.html b/doc/APIchunk18.html
index d8174c9f..66fd8fad 100644
--- a/doc/APIchunk18.html
+++ b/doc/APIchunk18.html
@@ -128,6 +128,7 @@
needlexmlStrcasestr
xmlStrstr
needsxmlEntityReferenceFunc
+xmlSchemaValidateFacetWhtsp
xmlXPathNodeSetFreeNs
negated_xmlSchemaWildcard
negativexmlC14NDocDumpMemory
@@ -225,6 +226,7 @@
normalizationxmlNormalizeURIPath
xmlParseSDDecl
xmlSchemaValPredefTypeNodeNoNorm
+xmlSchemaValidateFacetWhtsp
xmlValidCtxtNormalizeAttributeValue
xmlValidNormalizeAttributeValue
normalization:xmlCurrentChar
@@ -234,6 +236,7 @@
xmlTextReaderNormalization
normalize-spacexmlXPathNormalizeFunction
normalizedxmlParseAttValue
+xmlSchemaValidateFacetWhtsp
xmlValidCtxtNormalizeAttributeValue
xmlValidNormalizeAttributeValue
xmlXPathNormalizeFunction
diff --git a/doc/APIchunk20.html b/doc/APIchunk20.html
index 40b8dcb0..6d1c38e7 100644
--- a/doc/APIchunk20.html
+++ b/doc/APIchunk20.html
@@ -130,6 +130,7 @@
xmlPatternMaxDepth
xmlPatternStreamable
xmlPatterncompile
+xmlSchemaValidateFacetWhtsp
xmlTextReaderPreservePattern
pcdatacdataBlock
cdataBlockSAXFunc
@@ -189,35 +190,6 @@
positionedxmlTextReaderReadString
positionnedxmlTextReaderReadAttributeValue
positionsxmlUTF8Strsub
-positiveUTF8ToHtml
-UTF8Toisolat1
-docbEncodeEntities
-htmlEncodeEntities
-isolat1ToUTF8
-xmlBufferAdd
-xmlBufferAddHead
-xmlBufferCCat
-xmlBufferCat
-xmlCharEncodingInputFunc
-xmlCharEncodingOutputFunc
-xmlRelaxNGValidateDoc
-xmlSchemaValPredefTypeNode
-xmlSchemaValPredefTypeNodeNoNorm
-xmlSchemaValidateDoc
-xmlSchemaValidateFacet
-xmlSchemaValidateLengthFacet
-xmlSchemaValidateListSimpleTypeFacet
-xmlSchemaValidateOneElement
-xmlSchemaValidatePredefinedType
-xmlSchemaValidateStream
-xmlTextReaderPreservePattern
-xmlValidateNCName
-xmlValidateNMToken
-xmlValidateName
-xmlValidateQName
-xmlXPathBooleanFunction
-xmlXPathFloorFunction
-xmlXPathStringFunction
possible_xmlSchemaType
xmlCopyNodeList
xmlCreateEntityParserCtxt
@@ -271,7 +243,9 @@
precomputedxmlSchemaCopyValue
xmlSchemaGetCanonValue
xmlSchemaValidateFacet
+xmlSchemaValidateFacetWhtsp
xmlSchemaValidateLengthFacet
+xmlSchemaValidateLengthFacetWhtsp
predefinedXML_XML_NAMESPACE
xmlCleanupPredefinedEntities
xmlEncodeEntitiesReentrant
diff --git a/doc/APIchunk21.html b/doc/APIchunk21.html
index 1c8a9976..d74c946b 100644
--- a/doc/APIchunk21.html
+++ b/doc/APIchunk21.html
@@ -404,7 +404,9 @@
htmlCreatePushParserCtxt
xmlCreatePushParserCtxt
reprxmlSchemaValidateFacet
+xmlSchemaValidateFacetWhtsp
xmlSchemaValidateLengthFacet
+xmlSchemaValidateLengthFacetWhtsp
xmlSchemaValidateListSimpleTypeFacet
representation_htmlElemDesc
xmlSchemaGetCanonValue
diff --git a/doc/APIchunk22.html b/doc/APIchunk22.html
index 9ad2caf9..4959a4e7 100644
--- a/doc/APIchunk22.html
+++ b/doc/APIchunk22.html
@@ -123,6 +123,7 @@
xmlSchemaNewMemParserCtxt
xmlSchemaValidateDoc
xmlSchemaValidateFacet
+xmlSchemaValidateFacetWhtsp
xmlSchemaValidateStream
scheme_xmlURI
xmlBufferSetAllocationScheme
@@ -240,6 +241,7 @@
xmlGetUTF8Char
xmlSAX2InitDefaultSAXHandler
xmlSchemaValidateLengthFacet
+xmlSchemaValidateLengthFacetWhtsp
xmlXPathDifference
xmlXPathIntersection
settingxmlSetGenericErrorFunc
diff --git a/doc/APIchunk23.html b/doc/APIchunk23.html
index ab4b35c0..5a6b3116 100644
--- a/doc/APIchunk23.html
+++ b/doc/APIchunk23.html
@@ -58,6 +58,7 @@
htmlIsAutoClosed
htmlSetMetaEncoding
takexmlLockLibrary
+takesxmlSchemaValidateFacetWhtsp
tellXML_COMPLETE_ATTRS
XML_DETECT_IDS
XML_SKIP_IDS
@@ -418,7 +419,9 @@
xmlExternalEntityLoader
xmlParseSDDecl
xmlSchemaCheckFacet
+xmlSchemaGetCanonValue
xmlSchemaNewStringValue
+xmlSchemaValidateFacetWhtsp
typoxmlParseTextDecl
Type xmlSchemaValPtr:
xmlSchemaCopyValue
xmlSchemaNewNOTATIONValue
xmlSchemaNewStringValue
+
Type xmlSchemaValType:
xmlSchemaGetValType
Type xmlSchemaValidCtxtPtr:
xmlSchemaNewValidCtxt
Type xmlStreamCtxtPtr:
xmlPatternGetStreamCtxt
Type xmlTextReaderPtr:
xmlNewTextReader
diff --git a/doc/APIfiles.html b/doc/APIfiles.html
index 33bd4198..82435d02 100644
--- a/doc/APIfiles.html
+++ b/doc/APIfiles.html
@@ -1672,7 +1672,9 @@
Module xmlerror:
XML_C14N_CREATE_CTXT
XML_C14N_CREATE_STACK
XML_C14N_INVALID_NODE
+XML_C14N_RELATIVE_NAMESPACE
XML_C14N_REQUIRES_UTF8
+XML_C14N_UNKNOW_NODE
XML_CATALOG_ENTRY_BROKEN
XML_CATALOG_MISSING_ATTR
XML_CATALOG_NOT_CATALOG
@@ -2686,6 +2688,7 @@
xmlSchemaGetCanonValue
xmlSchemaGetFacetValueAsULong
xmlSchemaGetPredefinedType
+xmlSchemaGetValType
xmlSchemaInitTypes
xmlSchemaIsBuiltInTypeFacet
xmlSchemaNewFacet
@@ -2694,7 +2697,9 @@
xmlSchemaValPredefTypeNode
xmlSchemaValPredefTypeNodeNoNorm
xmlSchemaValidateFacet
+xmlSchemaValidateFacetWhtsp
xmlSchemaValidateLengthFacet
+xmlSchemaValidateLengthFacetWhtsp
xmlSchemaValidateListSimpleTypeFacet
xmlSchemaValidatePredefinedType
xmlSchemaWhiteSpaceReplace
diff --git a/doc/APIfunctions.html b/doc/APIfunctions.html
index c96a8d01..edf5edc8 100644
--- a/doc/APIfunctions.html
+++ b/doc/APIfunctions.html
@@ -295,6 +295,7 @@
xmlParseBalancedChunkMemoryRecover
xmlParseCtxtExternalEntity
xmlParseDTD
+xmlParseDoc
xmlParseElementContentDecl
xmlParseExternalEntity
xmlParseExternalSubset
@@ -329,6 +330,7 @@
xmlSAX2StartElementNs
xmlSAX2UnparsedEntityDecl
xmlSAXParseDTD
+xmlSAXParseDoc
xmlSchemaCheckFacet
xmlSchemaCollapseString
xmlSchemaGetPredefinedType
@@ -337,7 +339,9 @@
xmlSchemaValPredefTypeNode
xmlSchemaValPredefTypeNodeNoNorm
xmlSchemaValidateFacet
+xmlSchemaValidateFacetWhtsp
xmlSchemaValidateLengthFacet
+xmlSchemaValidateLengthFacetWhtsp
xmlSchemaValidateListSimpleTypeFacet
xmlSchemaValidatePredefinedType
xmlSchemaWhiteSpaceReplace
@@ -592,6 +596,7 @@
Type unsigned long:
ftpListCallback
xmlSchemaValidateListSimpleTypeFacet
Type unsigned long *:
xmlSchemaValidateLengthFacet
+xmlSchemaValidateLengthFacetWhtsp
xmlSchemaValidateListSimpleTypeFacet
Type va_list:
xmlStrVPrintf
xmlTextWriterWriteVFormatAttribute
@@ -970,11 +975,9 @@
xmlNewDocNodeEatName
xmlNewNodeEatName
xmlNewNsPropEatName
-xmlParseDoc
xmlParserInputDeallocate
xmlRecoverDoc
xmlSAX2EntityDecl
-xmlSAXParseDoc
xmlStrPrintf
xmlStrVPrintf
xmlStrcasestr
@@ -1792,7 +1795,9 @@
xmlSchemaFreeFacet
xmlSchemaGetFacetValueAsULong
xmlSchemaValidateFacet
+xmlSchemaValidateFacetWhtsp
xmlSchemaValidateLengthFacet
+xmlSchemaValidateLengthFacetWhtsp
xmlSchemaValidateListSimpleTypeFacet
Type xmlSchemaParserCtxtPtr:
xmlSchemaCheckFacet
xmlSchemaFreeParserCtxt
@@ -1816,13 +1821,18 @@
xmlSchemaCopyValue
xmlSchemaFreeValue
xmlSchemaGetCanonValue
+xmlSchemaGetValType
xmlSchemaValidateFacet
+xmlSchemaValidateFacetWhtsp
xmlSchemaValidateLengthFacet
+xmlSchemaValidateLengthFacetWhtsp
Type xmlSchemaValPtr *:
xmlSchemaValPredefTypeNode
xmlSchemaValPredefTypeNodeNoNorm
xmlSchemaValidatePredefinedType
Type xmlSchemaValType:
xmlSchemaGetBuiltInType
xmlSchemaNewStringValue
+xmlSchemaValidateFacetWhtsp
+xmlSchemaValidateLengthFacetWhtsp
Type xmlSchemaValidCtxtPtr:
xmlSchemaFreeValidCtxt
xmlSchemaGetValidErrors
xmlSchemaSetValidErrors
@@ -1840,6 +1850,8 @@
Type xmlSchemaValidityWarningFunc *:
xmlSchemaGetParserErrors
xmlSchemaGetValidErrors
Type xmlSchemaWhitespaceValueType:
xmlSchemaCompareValuesWhtsp
+xmlSchemaValidateFacetWhtsp
+xmlSchemaValidateLengthFacetWhtsp
Type xmlSchemaWildcardPtr:
xmlSchemaFreeWildcard
Type xmlShellCtxtPtr:
xmlShellBase
xmlShellCat
diff --git a/doc/APIsymbols.html b/doc/APIsymbols.html
index 7dbc146d..6f9c6d1c 100644
--- a/doc/APIsymbols.html
+++ b/doc/APIsymbols.html
@@ -143,7 +143,9 @@
XML_C14N_CREATE_CTXT
XML_C14N_CREATE_STACK
XML_C14N_INVALID_NODE
+XML_C14N_RELATIVE_NAMESPACE
XML_C14N_REQUIRES_UTF8
+XML_C14N_UNKNOW_NODE
XML_CAST_FPTR
XML_CATALOGS_NAMESPACE
XML_CATALOG_ENTRY_BROKEN
@@ -2546,6 +2548,7 @@
xmlSchemaGetFacetValueAsULong
xmlSchemaGetParserErrors
xmlSchemaGetPredefinedType
+xmlSchemaGetValType
xmlSchemaGetValidErrors
xmlSchemaInitTypes
xmlSchemaIsBuiltInTypeFacet
@@ -2582,7 +2585,9 @@
xmlSchemaValidOption
xmlSchemaValidateDoc
xmlSchemaValidateFacet
+xmlSchemaValidateFacetWhtsp
xmlSchemaValidateLengthFacet
+xmlSchemaValidateLengthFacetWhtsp
xmlSchemaValidateListSimpleTypeFacet
xmlSchemaValidateOneElement
xmlSchemaValidatePredefinedType
diff --git a/doc/apibuild.py b/doc/apibuild.py
index bd88a184..5f41d91c 100755
--- a/doc/apibuild.py
+++ b/doc/apibuild.py
@@ -33,6 +33,7 @@
"rngparser.h": "not yet integrated",
"elfgcchack.h": "not a normal header",
"testapi.c": "generated regression tests",
+ "tst.c": "not part of the library",
"testdso.c": "test for dynamid shared libraries",
}
@@ -70,9 +71,10 @@ def uniq(items):
return d.keys()
class identifier:
- def __init__(self, name, module=None, type=None, lineno = 0,
+ def __init__(self, name, header=None, module=None, type=None, lineno = 0,
info=None, extra=None, conditionals = None):
self.name = name
+ self.header = header
self.module = module
self.type = type
self.info = info
@@ -102,6 +104,8 @@ def __repr__(self):
return r
+ def set_header(self, header):
+ self.header = header
def set_module(self, module):
self.module = module
def set_type(self, type):
@@ -122,6 +126,8 @@ def set_conditionals(self, conditionals):
def get_name(self):
return self.name
+ def get_header(self):
+ return self.module
def get_module(self):
return self.module
def get_type(self):
@@ -137,12 +143,14 @@ def get_static(self):
def get_conditionals(self):
return self.conditionals
- def update(self, module, type = None, info = None, extra=None,
+ def update(self, header, module, type = None, info = None, extra=None,
conditionals=None):
if self.name == debugsym:
print "=> update %s : %s" % (debugsym, (module, type, info,
extra, conditionals))
- if module != None and self.module == None:
+ if header != None and self.header == None:
+ self.set_header(module)
+ if module != None and (self.module == None or self.header == self.module):
self.set_module(module)
if type != None and self.type == None:
self.set_type(type)
@@ -152,6 +160,8 @@ def update(self, module, type = None, info = None, extra=None,
self.set_extra(extra)
if conditionals != None:
self.set_conditionals(conditionals)
+ if self.name == 'xmlCleanupPredefinedEntities':
+ print "updating xmlCleanupPredefinedEntities : header %s module %s info %s" % (self.header, self.module, self.info)
class index:
@@ -168,15 +178,17 @@ def __init__(self, name = "noname"):
self.references = {}
self.info = {}
- def add_ref(self, name, module, static, type, lineno, info=None, extra=None, conditionals = None):
+ def add_ref(self, name, header, module, static, type, lineno, info=None, extra=None, conditionals = None):
if name[0:2] == '__':
return None
+ if name == 'xmlCleanupPredefinedEntities':
+ print "adding ref xmlCleanupPredefinedEntities : header %s module %s info %s" % (header, module, info)
d = None
try:
d = self.identifiers[name]
- d.update(module, type, lineno, info, extra, conditionals)
+ d.update(header, module, type, lineno, info, extra, conditionals)
except:
- d = identifier(name, module, type, lineno, info, extra, conditionals)
+ d = identifier(name, header, module, type, lineno, info, extra, conditionals)
self.identifiers[name] = d
if d != None and static == 1:
@@ -190,15 +202,17 @@ def add_ref(self, name, module, static, type, lineno, info=None, extra=None, con
return d
- def add(self, name, module, static, type, lineno, info=None, extra=None, conditionals = None):
+ def add(self, name, header, module, static, type, lineno, info=None, extra=None, conditionals = None):
if name[0:2] == '__':
return None
+ if name == 'xmlCleanupPredefinedEntities':
+ print "adding xmlCleanupPredefinedEntities : header %s module %s info %s" % (header, module, info)
d = None
try:
d = self.identifiers[name]
- d.update(module, type, lineno, info, extra, conditionals)
+ d.update(header, module, type, lineno, info, extra, conditionals)
except:
- d = identifier(name, module, type, lineno, info, extra, conditionals)
+ d = identifier(name, header, module, type, lineno, info, extra, conditionals)
self.identifiers[name] = d
if d != None and static == 1:
@@ -239,7 +253,7 @@ def merge(self, idx):
del self.macros[id]
if self.functions.has_key(id):
print "function %s from %s redeclared in %s" % (
- id, self.functions[id].module, idx.functions[id].module)
+ id, self.functions[id].header, idx.functions[id].header)
else:
self.functions[id] = idx.functions[id]
self.identifiers[id] = idx.functions[id]
@@ -252,21 +266,21 @@ def merge(self, idx):
del self.macros[id]
if self.variables.has_key(id):
print "variable %s from %s redeclared in %s" % (
- id, self.variables[id].module, idx.variables[id].module)
+ id, self.variables[id].header, idx.variables[id].header)
else:
self.variables[id] = idx.variables[id]
self.identifiers[id] = idx.variables[id]
for id in idx.structs.keys():
if self.structs.has_key(id):
print "struct %s from %s redeclared in %s" % (
- id, self.structs[id].module, idx.structs[id].module)
+ id, self.structs[id].header, idx.structs[id].header)
else:
self.structs[id] = idx.structs[id]
self.identifiers[id] = idx.structs[id]
for id in idx.typedefs.keys():
if self.typedefs.has_key(id):
print "typedef %s from %s redeclared in %s" % (
- id, self.typedefs[id].module, idx.typedefs[id].module)
+ id, self.typedefs[id].header, idx.typedefs[id].header)
else:
self.typedefs[id] = idx.typedefs[id]
self.identifiers[id] = idx.typedefs[id]
@@ -283,14 +297,14 @@ def merge(self, idx):
continue
if self.macros.has_key(id):
print "macro %s from %s redeclared in %s" % (
- id, self.macros[id].module, idx.macros[id].module)
+ id, self.macros[id].header, idx.macros[id].header)
else:
self.macros[id] = idx.macros[id]
self.identifiers[id] = idx.macros[id]
for id in idx.enums.keys():
if self.enums.has_key(id):
print "enum %s from %s redeclared in %s" % (
- id, self.enums[id].module, idx.enums[id].module)
+ id, self.enums[id].header, idx.enums[id].header)
else:
self.enums[id] = idx.enums[id]
self.identifiers[id] = idx.enums[id]
@@ -306,7 +320,7 @@ def merge_public(self, idx):
print " H: %s" % self.functions[id].conditionals
print " C: %s" % idx.functions[id].conditionals
up = idx.functions[id]
- self.functions[id].update(None, up.type, up.info, up.extra)
+ self.functions[id].update(None, up.module, up.type, up.info, up.extra)
# else:
# print "Function %s from %s is not declared in headers" % (
# id, idx.functions[id].module)
@@ -574,13 +588,21 @@ def lineno(self):
return self.lexer.getlineno()
def index_add(self, name, module, static, type, info=None, extra = None):
- self.index.add(name, module, static, type, self.lineno(),
- info, extra, self.conditionals)
+ if self.is_header == 1:
+ self.index.add(name, module, module, static, type, self.lineno(),
+ info, extra, self.conditionals)
+ else:
+ self.index.add(name, None, module, static, type, self.lineno(),
+ info, extra, self.conditionals)
def index_add_ref(self, name, module, static, type, info=None,
extra = None):
- self.index.add_ref(name, module, static, type, self.lineno(),
- info, extra, self.conditionals)
+ if self.is_header == 1:
+ self.index.add_ref(name, module, module, static, type,
+ self.lineno(), info, extra, self.conditionals)
+ else:
+ self.index.add_ref(name, None, module, static, type, self.lineno(),
+ info, extra, self.conditionals)
def warning(self, msg):
if self.no_error:
@@ -1603,12 +1625,14 @@ def modulename_file(self, file):
module = os.path.basename(file)
if module[-2:] == '.h':
module = module[:-2]
+ elif module[-2:] == '.c':
+ module = module[:-2]
return module
def serialize_enum(self, output, name):
id = self.idx.enums[name]
output.write(" \n" % (name,
- self.modulename_file(id.module)))
+ self.modulename_file(id.header)))
if id.info != None:
try:
(args, desc) = id.info
@@ -1649,7 +1673,7 @@ def serialize_typedef(self, output, name):
id = self.idx.typedefs[name]
if id.info[0:7] == 'struct ':
output.write(" \n");
else :
output.write(" \n" % (
- name, self.modulename_file(id.module), id.info))
+ name, self.modulename_file(id.header), id.info))
def serialize_variable(self, output, name):
id = self.idx.variables[name]
if id.info != None:
output.write(" \n" % (
- name, self.modulename_file(id.module), id.info))
+ name, self.modulename_file(id.header), id.info))
else:
output.write(" \n" % (
- name, self.modulename_file(id.module)))
+ name, self.modulename_file(id.header)))
def serialize_function(self, output, name):
id = self.idx.functions[name]
if name == debugsym:
print "=>", id
- output.write(" <%s name='%s' file='%s'>\n" % (id.type, name,
- self.modulename_file(id.module)))
+ output.write(" <%s name='%s' file='%s' module='%s'>\n" % (id.type,
+ name, self.modulename_file(id.header),
+ self.modulename_file(id.module)))
#
# Processing of conditionals modified by Bill 1/1/05
#
@@ -1870,7 +1895,7 @@ def serialize_xrefs_references(self, output):
typ.sort()
for id in typ:
idf = self.idx.identifiers[id]
- module = idf.module
+ module = idf.header
output.write(" \n" % (id,
'html/' + self.basename + '-' +
self.modulename_file(module) + '.html#' +
diff --git a/doc/elfgcchack.xsl b/doc/elfgcchack.xsl
index 5f5cb406..8f24aede 100644
--- a/doc/elfgcchack.xsl
+++ b/doc/elfgcchack.xsl
@@ -15,6 +15,12 @@
* autogenerated with xsltproc doc/elfgcchack.xsl doc/libxml2-api.xml
*/
+#ifdef IN_LIBXML
+#ifdef __GNUC__
+#ifdef PIC
+#ifdef linux
+#if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || (__GNUC__ > 3)
+
#include "libxml/c14n.h"
#include "libxml/catalog.h"
#include "libxml/chvalid.h"
@@ -64,18 +70,37 @@
/* special hot spot not exported ones */
-extern __typeof (__xmlGenericError) __xmlGenericError__internal_alias __attribute((visibility("hidden")));
+#ifdef bottom_globals
+#undef __xmlGenericError
extern __typeof (__xmlGenericError) __xmlGenericError __attribute((alias("__xmlGenericError__internal_alias")));
+#else
+#ifndef __xmlGenericError
+extern __typeof (__xmlGenericError) __xmlGenericError__internal_alias __attribute((visibility("hidden")));
#define __xmlGenericError __xmlGenericError__internal_alias
+#endif
+#endif
-extern __typeof (__xmlGenericErrorContext) __xmlGenericErrorContext__internal_alias __attribute((visibility("hidden")));
+#ifdef bottom_globals
+#undef __xmlGenericErrorContext
extern __typeof (__xmlGenericErrorContext) __xmlGenericErrorContext __attribute((alias("__xmlGenericErrorContext__internal_alias")));
+#else
+#ifndef __xmlGenericErrorContext
+extern __typeof (__xmlGenericErrorContext) __xmlGenericErrorContext__internal_alias __attribute((visibility("hidden")));
#define __xmlGenericErrorContext __xmlGenericErrorContext__internal_alias
+#endif
+#endif
/* list generated from libxml2-api.xml */
-
+
+#endif
+#endif
+#endif
+#endif
+#endif
+
+
@@ -83,25 +108,37 @@ extern __typeof (__xmlGenericErrorContext) __xmlGenericErrorContext __attribute(
- extern __typeof (
+ #ifdef bottom_
+
+
+#undef
+
+
+extern __typeof (
)
+
+ __attribute((alias("
- __attribute((visibility("hidden")));
+ ")));
+#else
+#ifndef
+
+
extern __typeof (
)
-
- __attribute((alias("
- ")));
+ __attribute((visibility("hidden")));
#define
+#endif
+#endif
diff --git a/doc/examples/.cvsignore b/doc/examples/.cvsignore
index e66329e6..7557b1ad 100644
--- a/doc/examples/.cvsignore
+++ b/doc/examples/.cvsignore
@@ -1,18 +1,18 @@
.memdump
Makefile.in
Makefile
-xpath1
-parse1
-parse2
-tree1
-tree2
-testWriter
+reader3
+io2
reader1
reader2
-io1
+reader4
+testWriter
parse3
-parse4
-io2
+tree2
+tree1
xpath2
-reader4
-reader3
+parse1
+xpath1
+io1
+parse4
+parse2
diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am
index 97edc550..0bc8934a 100644
--- a/doc/examples/Makefile.am
+++ b/doc/examples/Makefile.am
@@ -15,39 +15,19 @@ install-data-local:
$(mkinstalldirs) $(DESTDIR)$(HTML_DIR)
-@INSTALL@ -m 0644 $(srcdir)/*.html $(srcdir)/*.c $(srcdir)/*.xml $(srcdir)/*.xsl $(srcdir)/*.res $(DESTDIR)$(HTML_DIR)
-EXTRA_DIST=examples.xsl index.py test1.xml examples.xml test2.xml writer.xml test3.xml tst.xml reader1.res reader3.res tree1.res tree2.res io1.res io2.res xpath1.res xpath2.res reader4.res
+EXTRA_DIST=examples.xsl index.py test3.xml tst.xml test2.xml writer.xml test1.xml examples.xml xpath1.res tree2.res reader3.res tree1.res reader1.res xpath2.res reader4.res io2.res io1.res
-noinst_PROGRAMS=xpath1 parse1 parse2 tree1 tree2 testWriter reader1 reader2 io1 parse3 parse4 io2 xpath2 reader4 reader3
+noinst_PROGRAMS=reader3 io2 reader1 reader2 reader4 testWriter parse3 tree2 tree1 xpath2 parse1 xpath1 io1 parse4 parse2
-xpath1_SOURCES=xpath1.c
-xpath1_LDFLAGS=
-xpath1_DEPENDENCIES= $(DEPS)
-xpath1_LDADD= @RDL_LIBS@ $(LDADDS)
-
-parse1_SOURCES=parse1.c
-parse1_LDFLAGS=
-parse1_DEPENDENCIES= $(DEPS)
-parse1_LDADD= @RDL_LIBS@ $(LDADDS)
-
-parse2_SOURCES=parse2.c
-parse2_LDFLAGS=
-parse2_DEPENDENCIES= $(DEPS)
-parse2_LDADD= @RDL_LIBS@ $(LDADDS)
-
-tree1_SOURCES=tree1.c
-tree1_LDFLAGS=
-tree1_DEPENDENCIES= $(DEPS)
-tree1_LDADD= @RDL_LIBS@ $(LDADDS)
-
-tree2_SOURCES=tree2.c
-tree2_LDFLAGS=
-tree2_DEPENDENCIES= $(DEPS)
-tree2_LDADD= @RDL_LIBS@ $(LDADDS)
+reader3_SOURCES=reader3.c
+reader3_LDFLAGS=
+reader3_DEPENDENCIES= $(DEPS)
+reader3_LDADD= @RDL_LIBS@ $(LDADDS)
-testWriter_SOURCES=testWriter.c
-testWriter_LDFLAGS=
-testWriter_DEPENDENCIES= $(DEPS)
-testWriter_LDADD= @RDL_LIBS@ $(LDADDS)
+io2_SOURCES=io2.c
+io2_LDFLAGS=
+io2_DEPENDENCIES= $(DEPS)
+io2_LDADD= @RDL_LIBS@ $(LDADDS)
reader1_SOURCES=reader1.c
reader1_LDFLAGS=
@@ -59,40 +39,60 @@ reader2_LDFLAGS=
reader2_DEPENDENCIES= $(DEPS)
reader2_LDADD= @RDL_LIBS@ $(LDADDS)
-io1_SOURCES=io1.c
-io1_LDFLAGS=
-io1_DEPENDENCIES= $(DEPS)
-io1_LDADD= @RDL_LIBS@ $(LDADDS)
+reader4_SOURCES=reader4.c
+reader4_LDFLAGS=
+reader4_DEPENDENCIES= $(DEPS)
+reader4_LDADD= @RDL_LIBS@ $(LDADDS)
+
+testWriter_SOURCES=testWriter.c
+testWriter_LDFLAGS=
+testWriter_DEPENDENCIES= $(DEPS)
+testWriter_LDADD= @RDL_LIBS@ $(LDADDS)
parse3_SOURCES=parse3.c
parse3_LDFLAGS=
parse3_DEPENDENCIES= $(DEPS)
parse3_LDADD= @RDL_LIBS@ $(LDADDS)
-parse4_SOURCES=parse4.c
-parse4_LDFLAGS=
-parse4_DEPENDENCIES= $(DEPS)
-parse4_LDADD= @RDL_LIBS@ $(LDADDS)
+tree2_SOURCES=tree2.c
+tree2_LDFLAGS=
+tree2_DEPENDENCIES= $(DEPS)
+tree2_LDADD= @RDL_LIBS@ $(LDADDS)
-io2_SOURCES=io2.c
-io2_LDFLAGS=
-io2_DEPENDENCIES= $(DEPS)
-io2_LDADD= @RDL_LIBS@ $(LDADDS)
+tree1_SOURCES=tree1.c
+tree1_LDFLAGS=
+tree1_DEPENDENCIES= $(DEPS)
+tree1_LDADD= @RDL_LIBS@ $(LDADDS)
xpath2_SOURCES=xpath2.c
xpath2_LDFLAGS=
xpath2_DEPENDENCIES= $(DEPS)
xpath2_LDADD= @RDL_LIBS@ $(LDADDS)
-reader4_SOURCES=reader4.c
-reader4_LDFLAGS=
-reader4_DEPENDENCIES= $(DEPS)
-reader4_LDADD= @RDL_LIBS@ $(LDADDS)
+parse1_SOURCES=parse1.c
+parse1_LDFLAGS=
+parse1_DEPENDENCIES= $(DEPS)
+parse1_LDADD= @RDL_LIBS@ $(LDADDS)
-reader3_SOURCES=reader3.c
-reader3_LDFLAGS=
-reader3_DEPENDENCIES= $(DEPS)
-reader3_LDADD= @RDL_LIBS@ $(LDADDS)
+xpath1_SOURCES=xpath1.c
+xpath1_LDFLAGS=
+xpath1_DEPENDENCIES= $(DEPS)
+xpath1_LDADD= @RDL_LIBS@ $(LDADDS)
+
+io1_SOURCES=io1.c
+io1_LDFLAGS=
+io1_DEPENDENCIES= $(DEPS)
+io1_LDADD= @RDL_LIBS@ $(LDADDS)
+
+parse4_SOURCES=parse4.c
+parse4_LDFLAGS=
+parse4_DEPENDENCIES= $(DEPS)
+parse4_LDADD= @RDL_LIBS@ $(LDADDS)
+
+parse2_SOURCES=parse2.c
+parse2_LDFLAGS=
+parse2_DEPENDENCIES= $(DEPS)
+parse2_LDADD= @RDL_LIBS@ $(LDADDS)
valgrind:
$(MAKE) CHECKER='valgrind' tests
@@ -100,35 +100,35 @@ valgrind:
tests: $(noinst_PROGRAMS)
@(echo '## examples regression tests')
@(echo > .memdump)
- @($(CHECKER) ././xpath1 test3.xml '//child2' > xpath1.tmp ; diff xpath1.tmp xpath1.res ; rm xpath1.tmp)
+ @($(CHECKER) ./reader3 > reader3.tmp ; diff reader3.tmp reader3.res ; rm reader3.tmp)
@(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
- @($(CHECKER) ./parse1 test1.xml)
+ @($(CHECKER) ./io2 > io2.tmp ; diff io2.tmp io2.res ; rm -f io2.tmp)
@(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
- @($(CHECKER) ./parse2 test2.xml)
+ @($(CHECKER) ./reader1 test2.xml > reader1.tmp ; diff reader1.tmp reader1.res ; rm reader1.tmp)
@(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
- @($(CHECKER) ./tree1 test2.xml > tree1.tmp ; diff tree1.tmp tree1.res ; rm tree1.tmp)
+ @($(CHECKER) ./reader2 test2.xml > reader1.tmp ; diff reader1.tmp reader1.res ; rm reader1.tmp)
@(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
- @($(CHECKER) ./tree2 > tree2.tmp ; diff tree2.tmp tree2.res ; rm tree2.tmp)
+ @($(CHECKER) ./reader4 test1.xml test2.xml test3.xml > reader4.tmp ; diff reader4.tmp reader4.res ; rm reader4.tmp)
@(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
@($(CHECKER) ./testWriter ; for i in 1 2 3 4 ; do diff writer.xml writer$$i.res ; done ; rm writer*.res)
@(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
- @($(CHECKER) ./reader1 test2.xml > reader1.tmp ; diff reader1.tmp reader1.res ; rm reader1.tmp)
+ @($(CHECKER) ./parse3)
@(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
- @($(CHECKER) ./reader2 test2.xml > reader1.tmp ; diff reader1.tmp reader1.res ; rm reader1.tmp)
+ @($(CHECKER) ./tree2 > tree2.tmp ; diff tree2.tmp tree2.res ; rm tree2.tmp)
@(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
- @($(CHECKER) ./io1 > io1.tmp ; diff io1.tmp io1.res ; rm -f io1.tmp)
+ @($(CHECKER) ./tree1 test2.xml > tree1.tmp ; diff tree1.tmp tree1.res ; rm tree1.tmp)
@(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
- @($(CHECKER) ./parse3)
+ @($(CHECKER) ./xpath2 test3.xml '//discarded' discarded > xpath2.tmp ; diff xpath2.tmp xpath2.res ; rm xpath2.tmp)
@(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
- @($(CHECKER) ./parse4 test3.xml)
+ @($(CHECKER) ./parse1 test1.xml)
@(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
- @($(CHECKER) ./io2 > io2.tmp ; diff io2.tmp io2.res ; rm -f io2.tmp)
+ @($(CHECKER) ././xpath1 test3.xml '//child2' > xpath1.tmp ; diff xpath1.tmp xpath1.res ; rm xpath1.tmp)
@(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
- @($(CHECKER) ./xpath2 test3.xml '//discarded' discarded > xpath2.tmp ; diff xpath2.tmp xpath2.res ; rm xpath2.tmp)
+ @($(CHECKER) ./io1 > io1.tmp ; diff io1.tmp io1.res ; rm -f io1.tmp)
@(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
- @($(CHECKER) ./reader4 test1.xml test2.xml test3.xml > reader4.tmp ; diff reader4.tmp reader4.res ; rm reader4.tmp)
+ @($(CHECKER) ./parse4 test3.xml)
@(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
- @($(CHECKER) ./reader3 > reader3.tmp ; diff reader3.tmp reader3.res ; rm reader3.tmp)
+ @($(CHECKER) ./parse2 test2.xml)
@(grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" ; exit 0)
diff --git a/doc/examples/examples.xml b/doc/examples/examples.xml
index 7a683cdf..91122ad0 100644
--- a/doc/examples/examples.xml
+++ b/doc/examples/examples.xml
@@ -1,135 +1,136 @@
-
- Evaluate XPath expression and prints result node set.
- Shows how to evaluate XPath expression and register known namespaces in XPath context.
- xpath1 <xml-file> <xpath-expr> [<known-ns-list>]
- ./xpath1 test3.xml '//child2' > xpath1.tmp ; diff xpath1.tmp xpath1.res ; rm xpath1.tmp
- Aleksey Sanin
+
+ 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.)
+ reader3
+ reader3 > reader3.tmp ; diff reader3.tmp reader3.res ; rm reader3.tmp
+ Daniel Veillard
see Copyright for the status of this software.
-
+
- <libxml/parser.h>
- <libxml/xpath.h>
- <libxml/xpathInternals.h>
- <libxml/tree.h>
+ <libxml/xmlreader.h>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
- Parse an XML file to a tree and free it
- Demonstrate the use of xmlReadFile() to read an XML file into a tree and and xmlFreeDoc() to free the resulting tree
- parse1 test1.xml
- parse1 test1.xml
- Daniel Veillard
+
+ Output to char buffer
+ Demonstrate the use of xmlDocDumpMemory to output document to a character buffer
+ io2
+ io2 > io2.tmp ; diff io2.tmp io2.res ; rm -f io2.tmp
+ John Fleck
see Copyright for the status of this software.
-
+
- <libxml/tree.h>
<libxml/parser.h>
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
- 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.
- parse2 test2.xml
- parse2 test2.xml
+
+ 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.)
+ reader1 <filename>
+ reader1 test2.xml > reader1.tmp ; diff reader1.tmp reader1.res ; rm reader1.tmp
Daniel Veillard
see Copyright for the status of this software.
-
+
- <libxml/tree.h>
- <libxml/parser.h>
+ <libxml/xmlreader.h>
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
- 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.
- tree1 filename_or_URL
- tree1 test2.xml > tree1.tmp ; diff tree1.tmp tree1.res ; rm tree1.tmp
- Dodji Seketeli
+
+ 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.)
+ reader2 <valid_xml_filename>
+ reader2 test2.xml > reader1.tmp ; diff reader1.tmp reader1.res ; rm reader1.tmp
+ Daniel Veillard
see Copyright for the status of this software.
-
+
- <libxml/tree.h>
- <libxml/parser.h>
+ <libxml/xmlreader.h>
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
- Creates a tree
- Shows how to create document, nodes and dump it to stdout or file.
- tree2 <filename> -Default output: stdout
- tree2 > tree2.tmp ; diff tree2.tmp tree2.res ; rm tree2.tmp
- Lucas Brasilino <brasilino@recife.pe.gov.br>
- see Copyright for the status of this software
-
+
+ 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.)
+ reader4 <filename> [ filename ... ]
+ reader4 test1.xml test2.xml test3.xml > reader4.tmp ; diff reader4.tmp reader4.res ; rm reader4.tmp
+ Graham Bennett
+ see Copyright for the status of this software.
+
- <libxml/tree.h>
- <libxml/parser.h>
+ <libxml/xmlreader.h>
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
@@ -181,59 +182,146 @@
-
- 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.)
- reader1 <filename>
- reader1 test2.xml > reader1.tmp ; diff reader1.tmp reader1.res ; rm reader1.tmp
+
+ 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 and xmlFreeDoc() to free the resulting tree
+ parse3
+ parse3
Daniel Veillard
see Copyright for the status of this software.
-
+
- <libxml/xmlreader.h>
+ <libxml/tree.h>
+ <libxml/parser.h>
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
-
- 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.)
- reader2 <valid_xml_filename>
- reader2 test2.xml > reader1.tmp ; diff reader1.tmp reader1.res ; rm reader1.tmp
+
+ Creates a tree
+ Shows how to create document, nodes and dump it to stdout or file.
+ tree2 <filename> -Default output: stdout
+ tree2 > tree2.tmp ; diff tree2.tmp tree2.res ; rm tree2.tmp
+ Lucas Brasilino <brasilino@recife.pe.gov.br>
+ see Copyright for the status of this software
+
+
+ <libxml/tree.h>
+ <libxml/parser.h>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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.
+ tree1 filename_or_URL
+ tree1 test2.xml > tree1.tmp ; diff tree1.tmp tree1.res ; rm tree1.tmp
+ Dodji Seketeli
+ see Copyright for the status of this software.
+
+
+ <libxml/tree.h>
+ <libxml/parser.h>
+
+
+
+
+
+
+
+
+ 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
+ xpath2 <xml-file> <xpath-expr> <new-value>
+ xpath2 test3.xml '//discarded' discarded > xpath2.tmp ; diff xpath2.tmp xpath2.res ; rm xpath2.tmp
+ Aleksey Sanin and Daniel Veillard
+ see Copyright for the status of this software.
+
+
+ <libxml/parser.h>
+ <libxml/xpath.h>
+ <libxml/xpathInternals.h>
+ <libxml/tree.h>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parse an XML file to a tree and free it
+ Demonstrate the use of xmlReadFile() to read an XML file into a tree and and xmlFreeDoc() to free the resulting tree
+ parse1 test1.xml
+ parse1 test1.xml
Daniel Veillard
see Copyright for the status of this software.
-
+
- <libxml/xmlreader.h>
+ <libxml/tree.h>
+ <libxml/parser.h>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+ Evaluate XPath expression and prints result node set.
+ Shows how to evaluate XPath expression and register known namespaces in XPath context.
+ xpath1 <xml-file> <xpath-expr> [<known-ns-list>]
+ ./xpath1 test3.xml '//child2' > xpath1.tmp ; diff xpath1.tmp xpath1.res ; rm xpath1.tmp
+ Aleksey Sanin
+ see Copyright for the status of this software.
+
+
+ <libxml/parser.h>
+ <libxml/xpath.h>
+ <libxml/xpathInternals.h>
+ <libxml/tree.h>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -255,24 +343,6 @@
-
-
-
-
- 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 and xmlFreeDoc() to free the resulting tree
- parse3
- parse3
- Daniel Veillard
- see Copyright for the status of this software.
-
-
- <libxml/tree.h>
- <libxml/parser.h>
-
-
-
-
@@ -294,122 +364,52 @@
-
- Output to char buffer
- Demonstrate the use of xmlDocDumpMemory to output document to a character buffer
- io2
- io2 > io2.tmp ; diff io2.tmp io2.res ; rm -f io2.tmp
- John Fleck
- see Copyright for the status of this software.
-
-
- <libxml/parser.h>
-
-
-
-
-
-
-
-
-
-
-
-
- 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
- xpath2 <xml-file> <xpath-expr> <new-value>
- xpath2 test3.xml '//discarded' discarded > xpath2.tmp ; diff xpath2.tmp xpath2.res ; rm xpath2.tmp
- Aleksey Sanin and Daniel Veillard
- see Copyright for the status of this software.
-
-
- <libxml/parser.h>
- <libxml/xpath.h>
- <libxml/xpathInternals.h>
- <libxml/tree.h>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 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.)
- reader4 <filename> [ filename ... ]
- reader4 test1.xml test2.xml test3.xml > reader4.tmp ; diff reader4.tmp reader4.res ; rm reader4.tmp
- Graham Bennett
- see Copyright for the status of this software.
-
-
- <libxml/xmlreader.h>
-
-
-
-
-
-
-
-
-
-
-
- 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.)
- reader3
- reader3 > reader3.tmp ; diff reader3.tmp reader3.res ; rm reader3.tmp
+
+ 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.
+ parse2 test2.xml
+ parse2 test2.xml
Daniel Veillard
see Copyright for the status of this software.
-
+
- <libxml/xmlreader.h>
+ <libxml/tree.h>
+ <libxml/parser.h>
-
-
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
+
-
+
-
+
@@ -430,12 +430,12 @@
-
-
-
-
-
+
+
+
+
+
@@ -447,9 +447,9 @@
-
-
+
+
@@ -458,76 +458,76 @@
-
-
-
+
+
+
-
+
-
-
+
+
-
-
+
+
-
-
-
-
-
+
+
+
+
+
-
+
+
-
-
+
-
-
-
-
-
+
+
+
+
+
-
-
+
+
-
+
@@ -551,9 +551,9 @@
-
-
+
+
@@ -566,26 +566,26 @@
-
+
-
+
-
+
-
+
+
-
@@ -621,8 +621,8 @@
-
+
@@ -647,16 +647,16 @@
+
-
+
-
@@ -692,28 +692,28 @@
-
+
-
+
-
+
-
+
-
+
-
+
@@ -721,28 +721,28 @@
diff --git a/doc/html/libxml-parser.html b/doc/html/libxml-parser.html
index deef5918..97fd4558 100644
--- a/doc/html/libxml-parser.html
+++ b/doc/html/libxml-parser.html
@@ -145,7 +145,7 @@
int xmlParseChunk (xmlParserCtxtPtr ctxt,
const char * chunk,
int size,
int terminate)
int xmlParseCtxtExternalEntity (xmlParserCtxtPtr ctx,
const xmlChar * URL,
const xmlChar * ID,
xmlNodePtr * lst)
xmlDtdPtr xmlParseDTD (const xmlChar * ExternalID,
const xmlChar * SystemID)
-xmlDocPtr xmlParseDoc (xmlChar * cur)
+xmlDocPtr xmlParseDoc (const xmlChar * cur)
int xmlParseDocument (xmlParserCtxtPtr ctxt)
xmlDocPtr xmlParseEntity (const char * filename)
int xmlParseExtParsedEnt (xmlParserCtxtPtr ctxt)
@@ -171,7 +171,7 @@
xmlDocPtr xmlRecoverFile (const char * filename)
xmlDocPtr xmlRecoverMemory (const char * buffer,
int size)
xmlDtdPtr xmlSAXParseDTD (xmlSAXHandlerPtr sax,
const xmlChar * ExternalID,
const xmlChar * SystemID)
-xmlDocPtr xmlSAXParseDoc (xmlSAXHandlerPtr sax,
xmlChar * cur,
int recovery)
+xmlDocPtr xmlSAXParseDoc (xmlSAXHandlerPtr sax,
const xmlChar * cur,
int recovery)
xmlDocPtr xmlSAXParseEntity (xmlSAXHandlerPtr sax,
const char * filename)
xmlDocPtr xmlSAXParseFile (xmlSAXHandlerPtr sax,
const char * filename,
int recovery)
xmlDocPtr xmlSAXParseFileWithData (xmlSAXHandlerPtr sax,
const char * filename,
int recovery,
void * data)
@@ -434,7 +434,7 @@ Function: xmlInitPars
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
ctx: | the existing parsing context |
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: xmlParseDTD
xmlDtdPtr xmlParseDTD (const xmlChar * ExternalID,
const xmlChar * SystemID)
Load and parse an external subset.
-ExternalID: | a NAME* containing the External ID of the DTD |
SystemID: | a NAME* containing the URL to the DTD |
Returns: | the resulting xmlDtdPtr or NULL in case of error. |
Function: xmlParseDoc
xmlDocPtr xmlParseDoc (xmlChar * cur)
+ExternalID: | a NAME* containing the External ID of the DTD |
SystemID: | a NAME* containing the URL to the DTD |
Returns: | the resulting xmlDtdPtr or NULL in case of error. |
Function: xmlParseDoc
xmlDocPtr xmlParseDoc (const xmlChar * cur)
parse an XML in-memory document and build a tree.
cur: | a pointer to an array of xmlChar |
Returns: | the resulting document tree |
Function: xmlParseDocument
int xmlParseDocument (xmlParserCtxtPtr ctxt)
parse an XML document (and build a tree if using the standard SAX interface). [1] document ::= prolog element Misc* [22] prolog ::= XMLDecl? Misc* (doctypedecl Misc*)?
@@ -483,7 +483,7 @@ Function: xmlParser
parse an XML in-memory block and build a tree. In the case the document is not Well Formed, a tree is built anyway
buffer: | an pointer to a char array |
size: | the size of the array |
Returns: | the resulting document tree |
Function: xmlSAXParseDTD
xmlDtdPtr xmlSAXParseDTD (xmlSAXHandlerPtr sax,
const xmlChar * ExternalID,
const xmlChar * SystemID)
Load and parse an external subset.
-sax: | the SAX handler block |
ExternalID: | a NAME* containing the External ID of the DTD |
SystemID: | a NAME* containing the URL to the DTD |
Returns: | the resulting xmlDtdPtr or NULL in case of error. |
Function: xmlSAXParseDoc
xmlDocPtr xmlSAXParseDoc (xmlSAXHandlerPtr sax,
xmlChar * cur,
int recovery)
+sax: | the SAX handler block |
ExternalID: | a NAME* containing the External ID of the DTD |
SystemID: | a NAME* containing the URL to the DTD |
Returns: | the resulting xmlDtdPtr or NULL in case of error. |
Function: xmlSAXParseDoc
xmlDocPtr xmlSAXParseDoc (xmlSAXHandlerPtr sax,
const xmlChar * cur,
int recovery)
parse an XML in-memory document and build a tree. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines.
sax: | the SAX handler block |
cur: | a pointer to an array of xmlChar |
recovery: | work in recovery mode, i.e. tries to read no Well Formed documents |
Returns: | the resulting document tree |
Function: xmlSAXParseEntity
xmlDocPtr xmlSAXParseEntity (xmlSAXHandlerPtr sax,
const char * filename)
parse an XML external entity out of context and build a tree. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines. [78] extParsedEnt ::= TextDecl? content This correspond to a "Well Balanced" chunk
diff --git a/doc/html/libxml-xmlerror.html b/doc/html/libxml-xmlerror.html
index 425bcfc4..5d8f74e0 100644
--- a/doc/html/libxml-xmlerror.html
+++ b/doc/html/libxml-xmlerror.html
@@ -657,6 +657,8 @@ Structure xmlError
XML_C14N_REQUIRES_UTF8 = 1951 : 1951
XML_C14N_CREATE_STACK = 1952 : 1952
XML_C14N_INVALID_NODE = 1953 : 1953
+ XML_C14N_UNKNOW_NODE = 1954 : 1954
+ XML_C14N_RELATIVE_NAMESPACE = 1955 : 1955
XML_FTP_PASV_ANSWER = 2000
XML_FTP_EPSV_ANSWER = 2001 : 2001
XML_FTP_ACCNT = 2002 : 2002
diff --git a/doc/html/libxml-xmlschemastypes.html b/doc/html/libxml-xmlschemastypes.html
index cf304ad6..971c55e7 100644
--- a/doc/html/libxml-xmlschemastypes.html
+++ b/doc/html/libxml-xmlschemastypes.html
@@ -24,6 +24,7 @@
int xmlSchemaGetCanonValue (xmlSchemaValPtr val,
const xmlChar ** retValue)
unsigned long xmlSchemaGetFacetValueAsULong (xmlSchemaFacetPtr facet)
xmlSchemaTypePtr xmlSchemaGetPredefinedType (const xmlChar * name,
const xmlChar * ns)
+xmlSchemaValType xmlSchemaGetValType (xmlSchemaValPtr val)
void xmlSchemaInitTypes (void)
int xmlSchemaIsBuiltInTypeFacet (xmlSchemaTypePtr type,
int facetType)
xmlSchemaFacetPtr xmlSchemaNewFacet (void)
@@ -32,7 +33,9 @@
int xmlSchemaValPredefTypeNode (xmlSchemaTypePtr type,
const xmlChar * value,
xmlSchemaValPtr * val,
xmlNodePtr node)
int xmlSchemaValPredefTypeNodeNoNorm (xmlSchemaTypePtr type,
const xmlChar * value,
xmlSchemaValPtr * val,
xmlNodePtr node)
int xmlSchemaValidateFacet (xmlSchemaTypePtr base,
xmlSchemaFacetPtr facet,
const xmlChar * value,
xmlSchemaValPtr val)
+int xmlSchemaValidateFacetWhtsp (xmlSchemaFacetPtr facet,
xmlSchemaWhitespaceValueType fws,
xmlSchemaValType valType,
const xmlChar * value,
xmlSchemaValPtr val,
xmlSchemaWhitespaceValueType ws)
int xmlSchemaValidateLengthFacet (xmlSchemaTypePtr type,
xmlSchemaFacetPtr facet,
const xmlChar * value,
xmlSchemaValPtr val,
unsigned long * length)
+int xmlSchemaValidateLengthFacetWhtsp (xmlSchemaFacetPtr facet,
xmlSchemaValType valType,
const xmlChar * value,
xmlSchemaValPtr val,
unsigned long * length,
xmlSchemaWhitespaceValueType ws)
int xmlSchemaValidateListSimpleTypeFacet (xmlSchemaFacetPtr facet,
const xmlChar * value,
unsigned long actualLen,
unsigned long * expectedLen)
int xmlSchemaValidatePredefinedType (xmlSchemaTypePtr type,
const xmlChar * value,
xmlSchemaValPtr * val)
xmlChar * xmlSchemaWhiteSpaceReplace (const xmlChar * value)
@@ -64,12 +67,14 @@ Function:
type: | the built-in simple type. |
Returns: | the item type of @type as defined by the built-in datatype hierarchy of XML Schema Part 2: Datatypes, or NULL in case of an error. |
Function: xmlSchemaGetBuiltInType
xmlSchemaTypePtr xmlSchemaGetBuiltInType (xmlSchemaValType type)
Gives you the type struct for a built-in type by its type id.
type: | the type of the built in type |
Returns: | the type if found, NULL otherwise. |
Function: xmlSchemaGetCanonValue
int xmlSchemaGetCanonValue (xmlSchemaValPtr val,
const xmlChar ** retValue)
-
Get a the cononical representation of the value. The caller has to free the returned retValue.
-val: | the precomputed value |
retValue: | the returned value |
Returns: | 0 if the value could be built and -1 in case of API errors or if the value type is not supported yet. |
Function: xmlSchemaGetFacetValueAsULong
unsigned long xmlSchemaGetFacetValueAsULong (xmlSchemaFacetPtr facet)
+
Get a the cononical lexical representation of the value. The caller has to free the returned retValue. WARNING: Some value types are not supported yet, resulting in a @retValue of "???".
+val: | the precomputed value |
retValue: | the returned value |
Returns: | 0 if the value could be built and -1 in case of API errors. |
Function: xmlSchemaGetFacetValueAsULong
unsigned long xmlSchemaGetFacetValueAsULong (xmlSchemaFacetPtr facet)
Extract the value of a facet
facet: | an schemas type facet |
Returns: | the value as a long |
Function: xmlSchemaGetPredefinedType
xmlSchemaTypePtr xmlSchemaGetPredefinedType (const xmlChar * name,
const xmlChar * ns)
Lookup a type in the default XML Schemas type library
-name: | the type name |
ns: | the URI of the namespace usually "http://www.w3.org/2001/XMLSchema" |
Returns: | the type if found, NULL otherwise |
Function: xmlSchemaInitTypes
void xmlSchemaInitTypes (void)
+name: | the type name |
ns: | the URI of the namespace usually "http://www.w3.org/2001/XMLSchema" |
Returns: | the type if found, NULL otherwise |
Function: xmlSchemaGetValType
xmlSchemaValType xmlSchemaGetValType (xmlSchemaValPtr val)
+
+Function: xmlSchemaInitTypes
void xmlSchemaInitTypes (void)
Initialize the default XML Schemas type library
Function: xmlSchemaIsBuiltInTypeFacet
int xmlSchemaIsBuiltInTypeFacet (xmlSchemaTypePtr type,
int facetType)
Evaluates if a specific facet can be used in conjunction with a type.
@@ -85,9 +90,13 @@ F
Check that a value conforms to the lexical space of the predefined type. if true a value is computed and returned in @val. This one does apply any normalization to the value.
type: | the predefined type |
value: | the value to check |
val: | the return computed value |
node: | the node containing the value |
Returns: | 0 if this validates, a positive error code number otherwise and -1 in case of internal or API error. |
Function: xmlSchemaValidateFacet
int xmlSchemaValidateFacet (xmlSchemaTypePtr base,
xmlSchemaFacetPtr facet,
const xmlChar * value,
xmlSchemaValPtr val)
Check a value against a facet condition
-base: | the base type |
facet: | the facet to check |
value: | the lexical repr of the value to validate |
val: | the precomputed value |
Returns: | 0 if the element is schemas valid, a positive error code number otherwise and -1 in case of internal or API error. |
Function: xmlSchemaValidateLengthFacet
int xmlSchemaValidateLengthFacet (xmlSchemaTypePtr type,
xmlSchemaFacetPtr facet,
const xmlChar * value,
xmlSchemaValPtr val,
unsigned long * length)
+base: | the base type |
facet: | the facet to check |
value: | the lexical repr of the value to validate |
val: | the precomputed value |
Returns: | 0 if the element is schemas valid, a positive error code number otherwise and -1 in case of internal or API error. |
Function: xmlSchemaValidateFacetWhtsp
int xmlSchemaValidateFacetWhtsp (xmlSchemaFacetPtr facet,
xmlSchemaWhitespaceValueType fws,
xmlSchemaValType valType,
const xmlChar * value,
xmlSchemaValPtr val,
xmlSchemaWhitespaceValueType ws)
+
Check a value against a facet condition. This takes value normalization according to the specified whitespace types into account. Note that @value needs to be the *normalized* value if the facet is of type "pattern".
+facet: | the facet to check |
fws: | the whitespace type of the facet's value |
valType: | the built-in type of the value |
value: | the lexical (or normalized for pattern) repr of the value to validate |
val: | the precomputed value |
ws: | the whitespace type of the value |
Returns: | 0 if the element is schemas valid, a positive error code number otherwise and -1 in case of internal or API error. |
Function: xmlSchemaValidateLengthFacet
int xmlSchemaValidateLengthFacet (xmlSchemaTypePtr type,
xmlSchemaFacetPtr facet,
const xmlChar * value,
xmlSchemaValPtr val,
unsigned long * length)
Checka a value against a "length", "minLength" and "maxLength" facet; sets @length to the computed length of @value.
-type: | the built-in type |
facet: | the facet to check |
value: | the lexical repr. of the value to be validated |
val: | the precomputed value |
length: | the actual length of the value |
Returns: | 0 if the value is valid, a positive error code otherwise and -1 in case of an internal or API error. |
Function: xmlSchemaValidateListSimpleTypeFacet
int xmlSchemaValidateListSimpleTypeFacet (xmlSchemaFacetPtr facet,
const xmlChar * value,
unsigned long actualLen,
unsigned long * expectedLen)
+type: | the built-in type |
facet: | the facet to check |
value: | the lexical repr. of the value to be validated |
val: | the precomputed value |
length: | the actual length of the value |
Returns: | 0 if the value is valid, a positive error code otherwise and -1 in case of an internal or API error. |
Function: xmlSchemaValidateLengthFacetWhtsp
int xmlSchemaValidateLengthFacetWhtsp (xmlSchemaFacetPtr facet,
xmlSchemaValType valType,
const xmlChar * value,
xmlSchemaValPtr val,
unsigned long * length,
xmlSchemaWhitespaceValueType ws)
+
Checka a value against a "length", "minLength" and "maxLength" facet; sets @length to the computed length of @value.
+facet: | the facet to check |
valType: | the built-in type |
value: | the lexical repr. of the value to be validated |
val: | the precomputed value |
length: | the actual length of the value |
ws: | the whitespace type of the value |
Returns: | 0 if the value is valid, a positive error code otherwise and -1 in case of an internal or API error. |
Function: xmlSchemaValidateListSimpleTypeFacet
int xmlSchemaValidateListSimpleTypeFacet (xmlSchemaFacetPtr facet,
const xmlChar * value,
unsigned long actualLen,
unsigned long * expectedLen)
Checks the value of a list simple type against a facet.
facet: | the facet to check |
value: | the lexical repr of the value to validate |
actualLen: | the number of list items |
expectedLen: | the resulting expected number of list items |
Returns: | 0 if the value is valid, a positive error code number otherwise and -1 in case of an internal error. |
Function: xmlSchemaValidatePredefinedType
int xmlSchemaValidatePredefinedType (xmlSchemaTypePtr type,
const xmlChar * value,
xmlSchemaValPtr * val)
Check that a value conforms to the lexical space of the predefined type. if true a value is computed and returned in @val.
diff --git a/doc/libxml2-api.xml b/doc/libxml2-api.xml
index df10929b..56d670a6 100644
--- a/doc/libxml2-api.xml
+++ b/doc/libxml2-api.xml
@@ -2066,7 +2066,7 @@
-
+
@@ -2086,7 +2086,6 @@
-
@@ -2108,6 +2107,7 @@
+
@@ -2266,7 +2266,7 @@
-
+
@@ -2297,9 +2297,10 @@
+
-
+
@@ -2389,6 +2390,7 @@
+
@@ -2478,7 +2480,7 @@
-
+
@@ -2865,6 +2867,7 @@
+
@@ -2875,6 +2878,7 @@
+
@@ -2888,6 +2892,7 @@
+
@@ -4316,7 +4321,9 @@
+
+
@@ -6407,7 +6414,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_HTML_ENABLED)
Take a block of UTF-8 chars in and try to convert it to an ASCII plus HTML entities block of chars out.
@@ -6416,7 +6423,7 @@ actually an xmlCharEncoding'/>
-
+
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.
@@ -6425,7 +6432,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_LEGACY_ENABLED)
Handle an attribute that has been read by the parser. The default handling is to convert the attribute into an DOM subtree and past it in a new xmlAttr element added to the element. DEPRECATED: use xmlSAX2Attribute()
@@ -6433,7 +6440,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_LEGACY_ENABLED)
An attribute definition has been parsed DEPRECATED: use xmlSAX2AttributeDecl()
@@ -6445,7 +6452,7 @@ actually an xmlCharEncoding'/>
-
+
An attribute definition has been parsed.
@@ -6456,14 +6463,14 @@ actually an xmlCharEncoding'/>
-
+
Handle an attribute that has been read by the parser. The default handling is to convert the attribute into an DOM subtree and past it in a new xmlAttr element added to the element.
-
+
defined(LIBXML_LEGACY_ENABLED)
called when a pcdata block has been parsed DEPRECATED: use xmlSAX2CDataBlock()
@@ -6471,14 +6478,14 @@ actually an xmlCharEncoding'/>
-
+
Called when a pcdata block has been parsed.
-
+
defined(LIBXML_LEGACY_ENABLED)
receiving some chars from the parser. DEPRECATED: use xmlSAX2Characters()
@@ -6486,41 +6493,41 @@ actually an xmlCharEncoding'/>
-
+
Receiving some chars from the parser.
-
+
defined(LIBXML_LEGACY_ENABLED)
Check that the current element namespace is the same as the one read upon parsing. DEPRECATED
-
+
defined(LIBXML_LEGACY_ENABLED)
A comment has been parsed. DEPRECATED: use xmlSAX2Comment()
-
+
A comment has been parsed.
-
+
defined(LIBXML_DOCB_ENABLED)
Create a parser context for a file content. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time.
-
+
defined(LIBXML_DOCB_ENABLED)
Create a parser context for using the DocBook SGML parser in push mode To allow content encoding detection, @size should be >= 4 The value of @filename is used for fetching external entities and error/warning reports.
@@ -6531,12 +6538,12 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_DOCB_ENABLED)
Initialize the default SAX handler
-
+
defined(LIBXML_DOCB_ENABLED)
Take a block of UTF-8 chars in and try to convert it to an ASCII plus SGML entities block of chars out.
@@ -6546,13 +6553,13 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_DOCB_ENABLED)
Free all the memory used by a parser context. However the parsed document in ctxt->myDoc is not freed.
-
+
defined(LIBXML_DOCB_ENABLED)
Parse a Chunk of memory
@@ -6561,27 +6568,27 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_DOCB_ENABLED)
parse an SGML in-memory document and build a tree.
-
+
defined(LIBXML_DOCB_ENABLED)
parse an SGML document (and build a tree if using the standard SAX interface).
-
+
defined(LIBXML_DOCB_ENABLED)
parse a Docbook SGML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time.
-
+
defined(LIBXML_DOCB_ENABLED)
parse an SGML in-memory document and build a tree. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines.
@@ -6590,7 +6597,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_DOCB_ENABLED)
parse an SGML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines.
@@ -6599,7 +6606,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_LEGACY_ENABLED)
An element definition has been parsed DEPRECATED: use xmlSAX2ElementDecl()
@@ -6608,7 +6615,7 @@ actually an xmlCharEncoding'/>
-
+
An element definition has been parsed.
@@ -6616,25 +6623,25 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_LEGACY_ENABLED)
called when the document end has been detected. DEPRECATED: use xmlSAX2EndDocument()
-
+
Called when the document end has been detected.
-
+
defined(LIBXML_LEGACY_ENABLED)
called when the end of an element has been detected. DEPRECATED: use xmlSAX2EndElement()
-
+
SAX2 callback when an element end has been detected by the parser. It provides the namespace informations for the element.
@@ -6642,13 +6649,13 @@ actually an xmlCharEncoding'/>
-
+
Called when the end of an element has been detected.
-
+
defined(LIBXML_LEGACY_ENABLED)
An entity definition has been parsed DEPRECATED: use xmlSAX2EntityDecl()
@@ -6659,7 +6666,7 @@ actually an xmlCharEncoding'/>
-
+
An entity definition has been parsed.
@@ -6669,14 +6676,14 @@ actually an xmlCharEncoding'/>
-
+
Display and format an error messages, callback.
-
+
defined(LIBXML_LEGACY_ENABLED)
Callback on external subset declaration. DEPRECATED: use xmlSAX2ExternalSubset()
@@ -6685,7 +6692,7 @@ actually an xmlCharEncoding'/>
-
+
Callback on external subset declaration.
@@ -6693,14 +6700,14 @@ actually an xmlCharEncoding'/>
-
+
Display and format fatal error messages, callback. Note: so far fatalError() SAX callbacks are not used, error() get all the callbacks for errors.
-
+
defined(LIBXML_FTP_ENABLED)
A callback for the xmlNanoFTPGet command.
@@ -6708,7 +6715,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_FTP_ENABLED)
A callback for the xmlNanoFTPList command. Note that only one of year and day:minute are specified.
@@ -6725,63 +6732,63 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_LEGACY_ENABLED)
Provide the column number of the current parsing point. DEPRECATED: use xmlSAX2GetColumnNumber()
-
+
defined(LIBXML_LEGACY_ENABLED)
Get an entity by name DEPRECATED: use xmlSAX2GetEntity()
-
+
Get an entity by name.
-
+
defined(LIBXML_LEGACY_ENABLED)
Provide the line number of the current parsing point. DEPRECATED: use xmlSAX2GetLineNumber()
-
+
defined(LIBXML_LEGACY_ENABLED)
Get the current element namespace. DEPRECATED
-
+
defined(LIBXML_LEGACY_ENABLED)
Get a parameter entity by name DEPRECATED: use xmlSAX2GetParameterEntity()
-
+
Get a parameter entity by name.
-
+
defined(LIBXML_LEGACY_ENABLED)
Provides the public ID e.g. "-//SGMLSOURCE//DTD DEMO//EN" DEPRECATED: use xmlSAX2GetPublicId()
-
+
defined(LIBXML_LEGACY_ENABLED)
Provides the system ID, basically URL or filename e.g. http://www.sgmlsource.com/dtds/memo.dtd DEPRECATED: use xmlSAX2GetSystemId()
-
+
defined(LIBXML_LEGACY_ENABLED)
An old global namespace has been parsed. DEPRECATED
@@ -6789,29 +6796,29 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_LEGACY_ENABLED)
Does this document has an external subset DEPRECATED: use xmlSAX2HasExternalSubset()
-
+
Does this document has an external subset?
-
+
defined(LIBXML_LEGACY_ENABLED)
Does this document has an internal subset DEPRECATED: use xmlSAX2HasInternalSubset()
-
+
Does this document has an internal subset.
-
+
defined(LIBXML_HTML_ENABLED)
Checks whether an attribute is valid for an element Has full knowledge of Required and Deprecated attributes
@@ -6819,7 +6826,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_HTML_ENABLED)
The HTML DTD allows a tag to implicitly close other tags. The list is kept in htmlStartClose array. This function checks if the element or one of it's children would autoclose the given tag.
@@ -6827,21 +6834,21 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_HTML_ENABLED)
Create a parser context for a file content. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time.
-
+
defined(LIBXML_HTML_ENABLED)
Create a parser context for an HTML in-memory document.
-
+
defined(LIBXML_HTML_ENABLED) && defined(LIBXML_PUSH_ENABLED)
Create a parser context for using the HTML parser in push mode The value of @filename is used for fetching external entities and error/warning reports.
@@ -6852,7 +6859,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_HTML_ENABLED)
parse an XML in-memory document and build a tree. This reuses the existing @ctxt parser context
@@ -6862,7 +6869,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_HTML_ENABLED)
parse an XML from a file descriptor and build a tree. This reuses the existing @ctxt parser context
@@ -6872,7 +6879,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_HTML_ENABLED)
parse an XML file from the filesystem or the network. This reuses the existing @ctxt parser context
@@ -6881,7 +6888,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_HTML_ENABLED)
parse an HTML document from I/O functions and source and build a tree. This reuses the existing @ctxt parser context
@@ -6893,7 +6900,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_HTML_ENABLED)
parse an XML in-memory document and build a tree. This reuses the existing @ctxt parser context
@@ -6904,25 +6911,25 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_HTML_ENABLED)
Reset a parser context
-
+
defined(LIBXML_HTML_ENABLED)
Applies the options to the parser context
-
+
defined(LIBXML_HTML_ENABLED)
Initialize the default SAX handler
-
+
defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
Dump an HTML document.
@@ -6931,7 +6938,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
Dump an HTML document. Formating return/spaces are added.
@@ -6939,14 +6946,14 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
Dump an HTML document to an open FILE.
-
+
defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
Dump an HTML document in memory and return the xmlChar * and it's size. It's up to the caller to free the memory.
@@ -6954,21 +6961,21 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_HTML_ENABLED)
Checks whether an HTML element may be a direct child of a parent element. Note - doesn't check for deprecated elements
-
+
defined(LIBXML_HTML_ENABLED)
Checks whether an HTML element may be a direct child of a parent element. and if so whether it is valid or deprecated.
-
+
defined(LIBXML_HTML_ENABLED)
Take a block of UTF-8 chars in and try to convert it to an ASCII plus HTML entities block of chars out.
@@ -6978,75 +6985,75 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_HTML_ENABLED)
Lookup the given entity in EntitiesTable TODO: the linear scan is really ugly, an hash table is really needed.
-
+
defined(LIBXML_HTML_ENABLED)
Lookup the given entity in EntitiesTable TODO: the linear scan is really ugly, an hash table is really needed.
-
+
defined(LIBXML_HTML_ENABLED)
Free all the memory used by a parser context. However the parsed document in ctxt->myDoc is not freed.
-
+
defined(LIBXML_HTML_ENABLED)
Encoding definition lookup in the Meta tags
-
+
defined(LIBXML_HTML_ENABLED)
Set and return the previous value for handling HTML omitted tags.
-
+
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.
-
+
defined(LIBXML_HTML_ENABLED)
The HTML DTD allows a tag to implicitly close other tags. The list is kept in htmlStartClose array. This function checks if a tag is autoclosed by one of it's child
-
+
defined(LIBXML_HTML_ENABLED)
Determine if a given attribute is a boolean attribute.
-
+
defined(LIBXML_HTML_ENABLED)
Check if an attribute is of content type Script
-
+
defined(LIBXML_HTML_ENABLED)
Creates a new HTML document
-
+
defined(LIBXML_HTML_ENABLED)
Creates a new HTML document without a DTD node if @URI and @ExternalID are NULL
-
+
defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
Dump an HTML node, recursive behaviour,children are printed too, and formatting returns are added.
@@ -7054,7 +7061,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
Dump an HTML node, recursive behaviour,children are printed too, and formatting returns are added.
@@ -7062,7 +7069,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
Dump an HTML node, recursive behaviour,children are printed too. TODO: if encoding == NULL try to save in the doc encoding
@@ -7072,7 +7079,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
Dump an HTML node, recursive behaviour,children are printed too.
@@ -7082,7 +7089,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
Dump an HTML node, recursive behaviour,children are printed too, and formatting returns/spaces are added.
@@ -7091,20 +7098,20 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_HTML_ENABLED)
Checks whether the tree node is valid. Experimental (the author only uses the HTML enhancements in a SAX parser)
-
+
defined(LIBXML_HTML_ENABLED)
parse Reference declarations [66] CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';'
-
+
defined(LIBXML_HTML_ENABLED) && defined(LIBXML_PUSH_ENABLED)
Parse a Chunk of memory
@@ -7113,40 +7120,40 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_HTML_ENABLED)
parse an HTML in-memory document and build a tree.
-
+
defined(LIBXML_HTML_ENABLED)
parse an HTML document (and build a tree if using the standard SAX interface).
-
+
defined(LIBXML_HTML_ENABLED)
parse an HTML element, this is highly recursive [39] element ::= EmptyElemTag | STag content ETag [41] Attribute ::= Name Eq AttValue
-
+
defined(LIBXML_HTML_ENABLED)
parse an HTML ENTITY references [68] EntityRef ::= '&' Name ';'
-
+
defined(LIBXML_HTML_ENABLED)
parse an HTML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time.
-
+
defined(LIBXML_HTML_ENABLED)
parse an XML in-memory document and build a tree.
@@ -7155,7 +7162,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_HTML_ENABLED)
parse an XML from a file descriptor and build a tree.
@@ -7164,7 +7171,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_HTML_ENABLED)
parse an XML file from the filesystem or the network.
@@ -7172,7 +7179,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_HTML_ENABLED)
parse an HTML document from I/O functions and source and build a tree.
@@ -7183,7 +7190,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_HTML_ENABLED)
parse an XML in-memory document and build a tree.
@@ -7193,7 +7200,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_HTML_ENABLED)
Parse an HTML in-memory document. If sax is not NULL, use the SAX callbacks to handle parse events. If sax is NULL, fallback to the default DOM behavior and return a tree.
@@ -7202,7 +7209,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_HTML_ENABLED)
parse an HTML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines.
@@ -7211,14 +7218,14 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
Dump an HTML document to a file. If @filename is "-" the stdout file is used.
-
+
defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
Dump an HTML document to a file using a given encoding and formatting returns/spaces are added.
@@ -7226,7 +7233,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
Dump an HTML document to a file using a given encoding.
@@ -7235,20 +7242,20 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_HTML_ENABLED)
Sets the current encoding in the Meta tags NOTE: this will not change the document content encoding, just the META flag associated.
-
+
defined(LIBXML_HTML_ENABLED)
Lookup the HTML tag in the ElementTable
-
+
defined(LIBXML_LEGACY_ENABLED)
receiving some ignorable whitespaces from the parser. UNUSED: by default the DOM building will use characters DEPRECATED: use xmlSAX2IgnorableWhitespace()
@@ -7256,49 +7263,49 @@ actually an xmlCharEncoding'/>
-
+
Receiving some ignorable whitespaces from the parser. UNUSED: by default the DOM building will use characters.
-
+
Set or reset (if NULL) the default handler for generic errors to the builtin error function.
-
+
defined(LIBXML_LEGACY_ENABLED) && defined(LIBXML_SAX1_ENABLED) && defined(LIBXML_DOCB_ENABLED)
Initialize the default DocBook SAX version 1 handler DEPRECATED: use xmlSAX2InitDocbDefaultSAXHandler() for the new SAX2 blocks
-
+
defined(LIBXML_LEGACY_ENABLED) && defined(LIBXML_SAX1_ENABLED) && defined(LIBXML_HTML_ENABLED)
Initialize the default HTML SAX version 1 handler DEPRECATED: use xmlSAX2InitHtmlDefaultSAXHandler() for the new SAX2 blocks
-
+
defined(LIBXML_LEGACY_ENABLED) && defined(LIBXML_SAX1_ENABLED)
Initialize the default XML SAX version 1 handler DEPRECATED: use xmlSAX2InitDefaultSAXHandler() for the new SAX2 blocks
-
+
Pops the top parser input from the input stack
-
+
Pushes a new parser input on top of the input stack
-
+
defined(LIBXML_LEGACY_ENABLED)
Callback on internal subset declaration. DEPRECATED: use xmlSAX2InternalSubset()
@@ -7307,7 +7314,7 @@ actually an xmlCharEncoding'/>
-
+
Callback on internal subset declaration.
@@ -7315,18 +7322,18 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_LEGACY_ENABLED)
Is this document tagged standalone ? DEPRECATED: use xmlSAX2IsStandalone()
-
+
Is this document tagged standalone?
-
+
Take a block of ISO Latin 1 chars in and try to convert it to an UTF-8 block of chars out.
@@ -7334,18 +7341,18 @@ actually an xmlCharEncoding'/>
-
+
Pops the top element name from the name stack
-
+
Pushes a new element name on top of the name stack
-
+
defined(LIBXML_LEGACY_ENABLED)
A namespace has been parsed. DEPRECATED
@@ -7353,18 +7360,18 @@ actually an xmlCharEncoding'/>
-
+
Pops the top element node from the node stack
-
+
Pushes a new element node on top of the node stack
-
+
defined(LIBXML_LEGACY_ENABLED)
What to do when a notation declaration has been parsed. DEPRECATED: use xmlSAX2NotationDecl()
@@ -7373,7 +7380,7 @@ actually an xmlCharEncoding'/>
-
+
What to do when a notation declaration has been parsed.
@@ -7381,7 +7388,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_LEGACY_ENABLED)
A processing instruction has been parsed. DEPRECATED: use xmlSAX2ProcessingInstruction()
@@ -7389,27 +7396,27 @@ actually an xmlCharEncoding'/>
-
+
A processing instruction has been parsed.
-
+
defined(LIBXML_LEGACY_ENABLED)
called when an entity reference is detected. DEPRECATED: use xmlSAX2Reference()
-
+
Called when an entity reference is detected.
-
+
defined(LIBXML_LEGACY_ENABLED)
The entity loader, to control the loading of external entities, the application can either: - override this resolveEntity() callback in the SAX block - or better use the xmlSetExternalEntityLoader() function to set up it's own entity resolution routine DEPRECATED: use xmlSAX2ResolveEntity()
@@ -7417,45 +7424,45 @@ actually an xmlCharEncoding'/>
-
+
Callback: The entity loader, to control the loading of external entities, the application can either: - override this resolveEntity() callback in the SAX block - or better use the xmlSetExternalEntityLoader() function to set up it's own entity resolution routine
-
+
defined(LIBXML_LEGACY_ENABLED)
Receive the document locator at startup, actually xmlDefaultSAXLocator Everything is available on the context, so this is useless in our case. DEPRECATED
-
+
Receive the document locator at startup, actually xmlDefaultSAXLocator. Everything is available on the context, so this is useless in our case.
-
+
defined(LIBXML_LEGACY_ENABLED)
Set the current element namespace. DEPRECATED
-
+
defined(LIBXML_LEGACY_ENABLED)
called when the document start being processed. DEPRECATED: use xmlSAX2StartDocument()
-
+
Called when the document start being processed.
-
+
defined(LIBXML_LEGACY_ENABLED)
called when an opening tag has been processed. DEPRECATED: use xmlSAX2StartElement()
@@ -7463,7 +7470,7 @@ actually an xmlCharEncoding'/>
-
+
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.
@@ -7476,14 +7483,14 @@ actually an xmlCharEncoding'/>
-
+
Called when an opening tag has been processed.
-
+
defined(LIBXML_LEGACY_ENABLED)
What to do when an unparsed entity declaration is parsed DEPRECATED: use xmlSAX2UnparsedEntityDecl()
@@ -7493,7 +7500,7 @@ actually an xmlCharEncoding'/>
-
+
What to do when an unparsed entity declaration is parsed.
@@ -7502,27 +7509,27 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_XPATH_ENABLED)
Pops the top XPath object from the value stack
-
+
defined(LIBXML_XPATH_ENABLED)
Pushes a new XPath object on top of the value stack
-
+
Display and format a warning messages, callback.
-
+
defined(LIBXML_XPTR_ENABLED)
This is the prototype for a extended link detection callback.
@@ -7540,7 +7547,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_XPTR_ENABLED)
This is the prototype for a extended link set detection callback.
@@ -7553,43 +7560,43 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_XPTR_ENABLED)
Get the default xlink detection routine
-
+
defined(LIBXML_XPTR_ENABLED)
Get the default xlink handler.
-
+
defined(LIBXML_XPTR_ENABLED)
Check whether the given node carries the attributes needed to be a link element (or is one of the linking elements issued from the (X)HTML DtDs). This routine don't try to do full checking of the link validity but tries to detect and return the appropriate link type.
-
+
defined(LIBXML_XPTR_ENABLED)
This is the prototype for the link detection routine. It calls the default link detection callbacks upon link detection.
-
+
defined(LIBXML_XPTR_ENABLED)
Set the default xlink detection routine
-
+
defined(LIBXML_XPTR_ENABLED)
Set the default xlink handlers
-
+
defined(LIBXML_XPTR_ENABLED)
This is the prototype for a simple link detection callback.
@@ -7599,7 +7606,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_CATALOG_ENABLED)
Add an entry in the catalog, it may overwrite existing but different entries.
@@ -7608,21 +7615,21 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_CATALOG_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
Dump the given catalog to the given file.
-
+
defined(LIBXML_CATALOG_ENABLED)
Remove an entry from the catalog
-
+
defined(LIBXML_CATALOG_ENABLED)
Do a complete resolution lookup of an External Identifier
@@ -7630,28 +7637,28 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_CATALOG_ENABLED)
Try to lookup the catalog local reference associated to a public ID in that catalog
-
+
defined(LIBXML_CATALOG_ENABLED)
Try to lookup the catalog resource for a system ID
-
+
defined(LIBXML_CATALOG_ENABLED)
Do a complete resolution lookup of an URI
-
+
Register a new attribute declaration Note that @tree becomes the ownership of the DTD
@@ -7664,19 +7671,19 @@ actually an xmlCharEncoding'/>
-
+
Add a new node to @parent, at the end of the child (or property) list merging adjacent TEXT nodes (in which case @cur is freed) If the new node is ATTRIBUTE, it is added into properties instead of children. If there is an attribute with equal name, it is first destroyed.
-
+
Add a list of node at the end of the child list of the parent merging adjacent TEXT nodes (@cur may be freed)
-
+
Register a new entity for this document.
@@ -7686,7 +7693,7 @@ actually an xmlCharEncoding'/>
-
+
Register a new entity for this document DTD external subset.
@@ -7696,7 +7703,7 @@ actually an xmlCharEncoding'/>
-
+
Register a new element declaration
@@ -7705,13 +7712,13 @@ actually an xmlCharEncoding'/>
-
+
Registers an alias @alias for an encoding named @name. Existing alias will be overwritten.
-
+
Register a new id declaration
@@ -7719,13 +7726,13 @@ actually an xmlCharEncoding'/>
-
+
Add a new node @elem as the next sibling of @cur If the new node was already inserted in a document it is first unlinked from its existing context. As a result of text merging @elem may be freed. If the new node is ATTRIBUTE, it is added into properties instead of children. If there is an attribute with equal name, it is first destroyed.
-
+
Register a new notation declaration
@@ -7734,14 +7741,14 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_TREE_ENABLED) || defined(LIBXML_HTML_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
Add a new node @elem as the previous sibling of @cur merging adjacent TEXT nodes (@elem may be freed) If the new node was already inserted in a document it is first unlinked from its existing context. If the new node is ATTRIBUTE, it is added into properties instead of children. If there is an attribute with equal name, it is first destroyed.
-
+
Register a new ref declaration
@@ -7749,24 +7756,24 @@ actually an xmlCharEncoding'/>
-
+
Add a new element @elem to the list of siblings of @cur merging adjacent TEXT nodes (@elem may be freed) If the new element was already inserted in a document it is first unlinked from its existing context.
-
+
defined(LIBXML_OUTPUT_ENABLED)
Create a buffered parser output
-
+
Create a buffered parser input for progressive parsing
-
+
defined(LIBXML_OUTPUT_ENABLED)
Serialize text attribute values to an xml simple buffer
@@ -7775,25 +7782,25 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED)
Compile the automata into a Reg Exp ready for being executed. The automata should be free after this point.
-
+
defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED)
Initial state lookup
-
+
defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED)
Checks if an automata is determinist.
-
+
defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED)
If @to is NULL, this creates first a new target state in the automata and then adds a an ALL transition from the @from state to the target state. That transition is an epsilon transition allowed only when all transitions from the @from node have been activated.
@@ -7802,7 +7809,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED)
If @to is NULL, this creates first a new target state in the automata and then adds a transition from the @from state to the target state activated by a succession of input of value @token and whose number is between @min and @max
@@ -7814,7 +7821,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED)
If @to is NULL, this creates first a new target state in the automata and then adds a transition from the @from state to the target state activated by a succession of input of value @token and @token2 and whose number is between @min and @max
@@ -7827,7 +7834,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED)
If @to is NULL, this creates first a new target state in the automata and then adds an epsilon transition from the @from state to the target state which will increment the counter provided
@@ -7836,7 +7843,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED)
Create a new counter
@@ -7844,7 +7851,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED)
If @to is NULL, this creates first a new target state in the automata and then adds an epsilon transition from the @from state to the target state which will be allowed only if the counter is within the right range.
@@ -7853,7 +7860,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED)
If @to is NULL, this creates first a new target state in the automata and then adds an epsilon transition from the @from state to the target state
@@ -7861,7 +7868,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED)
If @to is NULL, this creates first a new target state in the automata and then adds a transition from the @from state to the target state activated by a succession of input of value @token and whose number is between @min and @max, moreover that transition can only be crossed once.
@@ -7873,7 +7880,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED)
If @to is NULL, this creates first a new target state in the automata and then adds a transition from the @from state to the target state activated by a succession of input of value @token and @token2 and whose number is between @min and @max, moreover that transition can only be crossed once.
@@ -7886,13 +7893,13 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED)
Create a new disconnected state in the automata
-
+
defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED)
If @to is NULL, this creates first a new target state in the automata and then adds a transition from the @from state to the target state activated by the value of @token
@@ -7902,7 +7909,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED)
If @to is NULL, this creates first a new target state in the automata and then adds a transition from the @from state to the target state activated by the value of @token
@@ -7913,129 +7920,129 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED)
Makes that state a final state
-
+
defined(LIBXML_DEBUG_ENABLED)
Convenient way to turn bool into text
-
+
Add a string range to an XML buffer. if len == -1, the length of str is recomputed.
-
+
Add a string range to the beginning of an XML buffer. if len == -1, the length of @str is recomputed.
-
+
Append a zero terminated C string to an XML buffer.
-
+
Append a zero terminated string to an XML buffer.
-
+
Function to extract the content of a buffer
-
+
routine to create an XML buffer.
-
+
routine to create an XML buffer.
-
+
routine to create an XML buffer from an immutable memory area. The area won't be modified nor copied, and is expected to be present until the end of the buffer lifetime.
-
+
Dumps an XML buffer to a FILE *.
-
+
empty a buffer.
-
+
Frees an XML buffer. It frees both the content and the structure which encapsulate it.
-
+
Grow the available space of an XML buffer.
-
+
Function to get the length of a buffer
-
+
Resize a buffer to accommodate minimum size of @size.
-
+
Sets the allocation scheme for this buffer
-
+
Remove the beginning of an XML buffer.
-
+
routine which manages and grows an output buffer. This one adds xmlChars at the end of the buffer.
-
+
routine which manage and grows an output buffer. This one add C chars at the end of the array.
-
+
routine which manage and grows an output buffer. This one writes a quoted or double quoted #xmlChar string, checking first if it holds quote or double-quotes internally
-
+
Builds the QName @prefix:@ncname in @memory if there is enough space and prefix is not NULL nor empty, otherwise allocate a new string. If prefix is NULL or empty it returns ncname.
@@ -8043,24 +8050,24 @@ actually an xmlCharEncoding'/>
-
+
Expresses the URI of the reference in terms relative to the base. Some examples of this operation include: base = "http://site1.com/docs/book1.html" URI input URI returned docs/pic1.gif pic1.gif docs/img/pic1.gif img/pic1.gif img/pic1.gif ../img/pic1.gif http://site1.com/docs/pic1.gif pic1.gif http://site2.com/docs/pic1.gif http://site2.com/docs/pic1.gif base = "docs/book1.html" URI input URI returned docs/pic1.gif pic1.gif docs/img/pic1.gif img/pic1.gif img/pic1.gif ../img/pic1.gif http://site1.com/docs/pic1.gif http://site1.com/docs/pic1.gif Note: if the URI reference is really wierd or complicated, it may be worthwhile to first convert it into a "nice" one by calling xmlBuildURI (using 'base') before calling this routine, since this routine (for reasonable efficiency) assumes URI has already been through some validation.
-
+
Computes he final URI of the reference done by checking that the given URI is valid, and building the final URI using the base URI. This is processed according to section 5.2 of the RFC 2396 5.2. Resolving Relative References to Absolute Form
-
+
This function provides the current index of the parser relative to the start of the current entity. This function is computed in bytes from the beginning starting at zero and finishing at the size in byte of the file if parsing a file. The function is of constant cost if the input is UTF-8 but can be costly if run on non-UTF-8 input.
-
+
defined(LIBXML_C14N_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
Dumps the canonized image of given XML document into memory. For details see "Canonical XML" (http://www.w3.org/TR/xml-c14n) or "Exclusive XML Canonicalization" (http://www.w3.org/TR/xml-exc-c14n)
@@ -8071,7 +8078,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_C14N_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
Dumps the canonized image of given XML document into the file. For details see "Canonical XML" (http://www.w3.org/TR/xml-c14n) or "Exclusive XML Canonicalization" (http://www.w3.org/TR/xml-exc-c14n)
@@ -8083,7 +8090,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_C14N_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
Dumps the canonized image of given XML document into the provided buffer. For details see "Canonical XML" (http://www.w3.org/TR/xml-c14n) or "Exclusive XML Canonicalization" (http://www.w3.org/TR/xml-exc-c14n)
@@ -8094,7 +8101,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_C14N_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
Dumps the canonized image of given XML document into the provided buffer. For details see "Canonical XML" (http://www.w3.org/TR/xml-c14n) or "Exclusive XML Canonicalization" (http://www.w3.org/TR/xml-exc-c14n)
@@ -8106,7 +8113,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_C14N_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
@@ -8114,12 +8121,12 @@ actually an xmlCharEncoding'/>
-
+
Constructs a canonic path from the specified path.
-
+
defined(LIBXML_CATALOG_ENABLED)
Add an entry in the catalog, it may overwrite existing but different entries. If called before any other catalog routine, allows to override the default shared catalog put in place by xmlInitializeCatalog();
@@ -8127,59 +8134,59 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_CATALOG_ENABLED)
Add the new entry to the catalog list
-
+