From 0fc063df3ab2ad380d532d210dd1001de473e51b Mon Sep 17 00:00:00 2001
From: Mike Hommey
Date: Mon, 4 Apr 2005 18:23:13 +0000
Subject: Load /tmp/tmp.98zkCi/libxml2-2.6.19 into
packages/libxml2/branches/upstream/current.
---
doc/APIchunk0.html | 30 +-
doc/APIchunk1.html | 1 +
doc/APIchunk10.html | 2 +
doc/APIchunk13.html | 2 +
doc/APIchunk14.html | 1 +
doc/APIchunk15.html | 9 +-
doc/APIchunk16.html | 3 +
doc/APIchunk17.html | 2 +
doc/APIchunk18.html | 3 +
doc/APIchunk20.html | 32 +-
doc/APIchunk21.html | 2 +
doc/APIchunk22.html | 3 +
doc/APIchunk23.html | 4 +
doc/APIchunk24.html | 1 +
doc/APIchunk25.html | 2 +
doc/APIchunk26.html | 1 +
doc/APIchunk4.html | 4 +-
doc/APIchunk6.html | 1 +
doc/APIchunk8.html | 8 +-
doc/APIchunk9.html | 2 +
doc/APIconstructors.html | 1 +
doc/APIfiles.html | 9 +
doc/APIfunctions.html | 16 +-
doc/APIsymbols.html | 9 +
doc/apibuild.py | 78 +-
doc/elfgcchack.xsl | 53 +-
doc/examples/Makefile.am | 128 +-
doc/examples/Makefile.in | 128 +-
doc/examples/examples.xml | 608 +++---
doc/html/libxml-parser.html | 8 +-
doc/html/libxml-schemasInternals.html | 6 +-
doc/html/libxml-xmlerror.html | 2 +
doc/html/libxml-xmlschemas.html | 1 +
doc/html/libxml-xmlschemastypes.html | 19 +-
doc/libxml2-api.xml | 3286 +++++++++++++++++----------------
doc/libxml2.xsa | 52 +-
doc/news.html | 20 +-
doc/xml.html | 21 +
38 files changed, 2368 insertions(+), 2190 deletions(-)
(limited to 'doc')
diff --git a/doc/APIchunk0.html b/doc/APIchunk0.html
index 89cf637..df61e31 100644
--- a/doc/APIchunk0.html
+++ b/doc/APIchunk0.html
@@ -43,35 +43,6 @@ A:link, A:visited, A:active { text-decoration: underline }
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
@@ -93,6 +64,7 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlAddNextSibling
xmlAddPrevSibling
AbsolutexmlBuildURI
+AccessorxmlSchemaGetValType
ActivationxmlTextReaderRelaxNGSetSchema
xmlTextReaderRelaxNGValidate
AddxmlACatalogAdd
diff --git a/doc/APIchunk1.html b/doc/APIchunk1.html
index eb14d20..40e070e 100644
--- a/doc/APIchunk1.html
+++ b/doc/APIchunk1.html
@@ -172,6 +172,7 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlParseCharRef
CharactersxmlParseCharRef
CheckaxmlSchemaValidateLengthFacet
+xmlSchemaValidateLengthFacetWhtsp
CheckshtmlAttrAllowed
htmlElementAllowedHere
htmlElementAllowedHereDesc
diff --git a/doc/APIchunk10.html b/doc/APIchunk10.html
index b1c4503..86b5d92 100644
--- a/doc/APIchunk10.html
+++ b/doc/APIchunk10.html
@@ -488,12 +488,14 @@ A:link, A:visited, A:active { text-decoration: underline }
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 999fd9c..3ba2e02 100644
--- a/doc/APIchunk13.html
+++ b/doc/APIchunk13.html
@@ -46,7 +46,9 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlSchemaGetFacetValueAsULong
xmlSchemaIsBuiltInTypeFacet
xmlSchemaValidateFacet
+xmlSchemaValidateFacetWhtsp
xmlSchemaValidateLengthFacet
+xmlSchemaValidateLengthFacetWhtsp
xmlSchemaValidateListSimpleTypeFacet
facetsXML_SCHEMAS_TYPE_FACETSNEEDVALUE
xmlSchemaCheckFacet
diff --git a/doc/APIchunk14.html b/doc/APIchunk14.html
index ea81366..3e6eeed 100644
--- a/doc/APIchunk14.html
+++ b/doc/APIchunk14.html
@@ -251,6 +251,7 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlNanoHTTPMimeType
headingxmlCharEncodingOutputFunc
helperXML_SCHEMAS_ELEM_CIRCULAR
+_xmlSchema
here_xmlXPathContext
htmlNodeStatus
xmlParseAttValue
diff --git a/doc/APIchunk15.html b/doc/APIchunk15.html
index a52bda6..5f7db2f 100644
--- a/doc/APIchunk15.html
+++ b/doc/APIchunk15.html
@@ -216,6 +216,8 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlStreamPush
xmlStreamPushAttr
indicatesXML_SCHEMAS_TYPE_FACETSNEEDVALUE
+XML_SCHEMAS_TYPE_INTERNAL_INVALID
+XML_SCHEMAS_TYPE_INTERNAL_RESOLVED
xmlHasNsProp
xmlNanoFTPRead
xmlNanoFTPScanProxy
@@ -476,6 +478,7 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlGetFeaturesList
xmlNewIOInputStream
xmlParserAddNodeInfo
+xmlSchemaValidateFacetWhtsp
xmlStrPrintf
xmlStrVPrintf
xmlTextMerge
@@ -484,7 +487,8 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlXPathWrapCString
xmlXPathWrapExternal
xmlXPathWrapString
-invalidxmlReconciliateNs
+invalidXML_SCHEMAS_TYPE_INTERNAL_INVALID
+xmlReconciliateNs
xmlValidateDtdFinal
invitedxmlValidGetValidElements
invokingxmlGetLineNo
@@ -507,7 +511,8 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlNanoFTPDele
xmlSchemaGetBuiltInListSimpleTypeItemType
xmlXPathNodeSetItem
-itemsvaluePush
+items_xmlSchema
+valuePush
xmlHashCopy
xmlHashFree
xmlHashScan
diff --git a/doc/APIchunk16.html b/doc/APIchunk16.html
index 4a485bd..a979b01 100644
--- a/doc/APIchunk16.html
+++ b/doc/APIchunk16.html
@@ -181,10 +181,13 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlXPathDebugDumpCompExpr
xmlXPathDebugDumpObject
lexicalxmlParseDefaultDecl
+xmlSchemaGetCanonValue
xmlSchemaValPredefTypeNode
xmlSchemaValPredefTypeNodeNoNorm
xmlSchemaValidateFacet
+xmlSchemaValidateFacetWhtsp
xmlSchemaValidateLengthFacet
+xmlSchemaValidateLengthFacetWhtsp
xmlSchemaValidateListSimpleTypeFacet
xmlSchemaValidatePredefinedType
xmlValidateNCName
diff --git a/doc/APIchunk17.html b/doc/APIchunk17.html
index 1d2a178..a66953a 100644
--- a/doc/APIchunk17.html
+++ b/doc/APIchunk17.html
@@ -133,6 +133,7 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlStrncasecmp
xmlStrncmp
maxLengthxmlSchemaValidateLengthFacet
+xmlSchemaValidateLengthFacetWhtsp
maximalxmlAutomataNewCounter
maximumxmlAutomataNewCountTrans
xmlAutomataNewCountTrans2
@@ -211,6 +212,7 @@ A:link, A:visited, A:active { text-decoration: underline }
mightxmlNewTextChild
migratexmlEncodeEntities
minLengthxmlSchemaValidateLengthFacet
+xmlSchemaValidateLengthFacetWhtsp
minimalxmlAutomataNewCounter
minimumxmlAutomataNewCountTrans
xmlAutomataNewCountTrans2
diff --git a/doc/APIchunk18.html b/doc/APIchunk18.html
index d8174c9..66fd8fa 100644
--- a/doc/APIchunk18.html
+++ b/doc/APIchunk18.html
@@ -128,6 +128,7 @@ A:link, A:visited, A:active { text-decoration: underline }
needlexmlStrcasestr
xmlStrstr
needsxmlEntityReferenceFunc
+xmlSchemaValidateFacetWhtsp
xmlXPathNodeSetFreeNs
negated_xmlSchemaWildcard
negativexmlC14NDocDumpMemory
@@ -225,6 +226,7 @@ A:link, A:visited, A:active { text-decoration: underline }
normalizationxmlNormalizeURIPath
xmlParseSDDecl
xmlSchemaValPredefTypeNodeNoNorm
+xmlSchemaValidateFacetWhtsp
xmlValidCtxtNormalizeAttributeValue
xmlValidNormalizeAttributeValue
normalization:xmlCurrentChar
@@ -234,6 +236,7 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlTextReaderNormalization
normalize-spacexmlXPathNormalizeFunction
normalizedxmlParseAttValue
+xmlSchemaValidateFacetWhtsp
xmlValidCtxtNormalizeAttributeValue
xmlValidNormalizeAttributeValue
xmlXPathNormalizeFunction
diff --git a/doc/APIchunk20.html b/doc/APIchunk20.html
index 40b8dcb..6d1c38e 100644
--- a/doc/APIchunk20.html
+++ b/doc/APIchunk20.html
@@ -130,6 +130,7 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlPatternMaxDepth
xmlPatternStreamable
xmlPatterncompile
+xmlSchemaValidateFacetWhtsp
xmlTextReaderPreservePattern
pcdatacdataBlock
cdataBlockSAXFunc
@@ -189,35 +190,6 @@ A:link, A:visited, A:active { text-decoration: underline }
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 @@ A:link, A:visited, A:active { text-decoration: underline }
precomputedxmlSchemaCopyValue
xmlSchemaGetCanonValue
xmlSchemaValidateFacet
+xmlSchemaValidateFacetWhtsp
xmlSchemaValidateLengthFacet
+xmlSchemaValidateLengthFacetWhtsp
predefinedXML_XML_NAMESPACE
xmlCleanupPredefinedEntities
xmlEncodeEntitiesReentrant
diff --git a/doc/APIchunk21.html b/doc/APIchunk21.html
index 1c8a997..d74c946 100644
--- a/doc/APIchunk21.html
+++ b/doc/APIchunk21.html
@@ -404,7 +404,9 @@ A:link, A:visited, A:active { text-decoration: underline }
htmlCreatePushParserCtxt
xmlCreatePushParserCtxt
reprxmlSchemaValidateFacet
+xmlSchemaValidateFacetWhtsp
xmlSchemaValidateLengthFacet
+xmlSchemaValidateLengthFacetWhtsp
xmlSchemaValidateListSimpleTypeFacet
representation_htmlElemDesc
xmlSchemaGetCanonValue
diff --git a/doc/APIchunk22.html b/doc/APIchunk22.html
index 9ad2caf..c48c7e1 100644
--- a/doc/APIchunk22.html
+++ b/doc/APIchunk22.html
@@ -120,9 +120,11 @@ A:link, A:visited, A:active { text-decoration: underline }
schemasxmlRelaxNGNewDocParserCtxt
xmlRelaxNGNewMemParserCtxt
xmlSchemaGetFacetValueAsULong
+xmlSchemaGetValType
xmlSchemaNewMemParserCtxt
xmlSchemaValidateDoc
xmlSchemaValidateFacet
+xmlSchemaValidateFacetWhtsp
xmlSchemaValidateStream
scheme_xmlURI
xmlBufferSetAllocationScheme
@@ -240,6 +242,7 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlGetUTF8Char
xmlSAX2InitDefaultSAXHandler
xmlSchemaValidateLengthFacet
+xmlSchemaValidateLengthFacetWhtsp
xmlXPathDifference
xmlXPathIntersection
settingxmlSetGenericErrorFunc
diff --git a/doc/APIchunk23.html b/doc/APIchunk23.html
index ab4b35c..95078db 100644
--- a/doc/APIchunk23.html
+++ b/doc/APIchunk23.html
@@ -58,6 +58,7 @@ A:link, A:visited, A:active { text-decoration: underline }
htmlIsAutoClosed
htmlSetMetaEncoding
takexmlLockLibrary
+takesxmlSchemaValidateFacetWhtsp
tellXML_COMPLETE_ATTRS
XML_DETECT_IDS
XML_SKIP_IDS
@@ -413,12 +414,15 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlXPtrNewLocationSetNodes
two-characterxmlCurrentChar
typ_xmlSchemaTypeLink
+typefixedXML_SCHEMAS_TYPE_INTERNAL_RESOLVED
typesXML_SCHEMAS_FACET_COLLAPSE
_xmlXPathContext
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 33bd419..3b6a935 100644
--- a/doc/APIfiles.html
+++ b/doc/APIfiles.html
@@ -1050,6 +1050,8 @@ A:link, A:visited, A:active { text-decoration: underline }
XML_SCHEMAS_TYPE_FINAL_RESTRICTION
XML_SCHEMAS_TYPE_FINAL_UNION
XML_SCHEMAS_TYPE_GLOBAL
+XML_SCHEMAS_TYPE_INTERNAL_INVALID
+XML_SCHEMAS_TYPE_INTERNAL_RESOLVED
XML_SCHEMAS_TYPE_MARKED
XML_SCHEMAS_TYPE_MIXED
XML_SCHEMAS_TYPE_OWNED_ATTR_WILDCARD
@@ -1071,6 +1073,7 @@ A:link, A:visited, A:active { text-decoration: underline }
XML_SCHEMA_CONTENT_MIXED_OR_ELEMENTS
XML_SCHEMA_CONTENT_SIMPLE
XML_SCHEMA_CONTENT_UNKNOWN
+XML_SCHEMA_EXTRA_QNAMEREF
XML_SCHEMA_FACET_ENUMERATION
XML_SCHEMA_FACET_FRACTIONDIGITS
XML_SCHEMA_FACET_LENGTH
@@ -1101,6 +1104,7 @@ A:link, A:visited, A:active { text-decoration: underline }
XML_SCHEMA_TYPE_IDC_UNIQUE
XML_SCHEMA_TYPE_LIST
XML_SCHEMA_TYPE_NOTATION
+XML_SCHEMA_TYPE_PARTICLE
XML_SCHEMA_TYPE_RESTRICTION
XML_SCHEMA_TYPE_SEQUENCE
XML_SCHEMA_TYPE_SIMPLE
@@ -1672,7 +1676,9 @@ A:link, A:visited, A:active { text-decoration: underline }
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 +2692,7 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlSchemaGetCanonValue
xmlSchemaGetFacetValueAsULong
xmlSchemaGetPredefinedType
+xmlSchemaGetValType
xmlSchemaInitTypes
xmlSchemaIsBuiltInTypeFacet
xmlSchemaNewFacet
@@ -2694,7 +2701,9 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlSchemaValPredefTypeNode
xmlSchemaValPredefTypeNodeNoNorm
xmlSchemaValidateFacet
+xmlSchemaValidateFacetWhtsp
xmlSchemaValidateLengthFacet
+xmlSchemaValidateLengthFacetWhtsp
xmlSchemaValidateListSimpleTypeFacet
xmlSchemaValidatePredefinedType
xmlSchemaWhiteSpaceReplace
diff --git a/doc/APIfunctions.html b/doc/APIfunctions.html
index c96a8d0..edf5edc 100644
--- a/doc/APIfunctions.html
+++ b/doc/APIfunctions.html
@@ -295,6 +295,7 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlParseBalancedChunkMemoryRecover
xmlParseCtxtExternalEntity
xmlParseDTD
+xmlParseDoc
xmlParseElementContentDecl
xmlParseExternalEntity
xmlParseExternalSubset
@@ -329,6 +330,7 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlSAX2StartElementNs
xmlSAX2UnparsedEntityDecl
xmlSAXParseDTD
+xmlSAXParseDoc
xmlSchemaCheckFacet
xmlSchemaCollapseString
xmlSchemaGetPredefinedType
@@ -337,7 +339,9 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlSchemaValPredefTypeNode
xmlSchemaValPredefTypeNodeNoNorm
xmlSchemaValidateFacet
+xmlSchemaValidateFacetWhtsp
xmlSchemaValidateLengthFacet
+xmlSchemaValidateLengthFacetWhtsp
xmlSchemaValidateListSimpleTypeFacet
xmlSchemaValidatePredefinedType
xmlSchemaWhiteSpaceReplace
@@ -592,6 +596,7 @@ A:link, A:visited, A:active { text-decoration: underline }
Type unsigned long:
ftpListCallback
xmlSchemaValidateListSimpleTypeFacet
Type unsigned long *:
xmlSchemaValidateLengthFacet
+xmlSchemaValidateLengthFacetWhtsp
xmlSchemaValidateListSimpleTypeFacet
Type va_list:
xmlStrVPrintf
xmlTextWriterWriteVFormatAttribute
@@ -970,11 +975,9 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlNewDocNodeEatName
xmlNewNodeEatName
xmlNewNsPropEatName
-xmlParseDoc
xmlParserInputDeallocate
xmlRecoverDoc
xmlSAX2EntityDecl
-xmlSAXParseDoc
xmlStrPrintf
xmlStrVPrintf
xmlStrcasestr
@@ -1792,7 +1795,9 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlSchemaFreeFacet
xmlSchemaGetFacetValueAsULong
xmlSchemaValidateFacet
+xmlSchemaValidateFacetWhtsp
xmlSchemaValidateLengthFacet
+xmlSchemaValidateLengthFacetWhtsp
xmlSchemaValidateListSimpleTypeFacet
Type xmlSchemaParserCtxtPtr:
xmlSchemaCheckFacet
xmlSchemaFreeParserCtxt
@@ -1816,13 +1821,18 @@ A:link, A:visited, A:active { text-decoration: underline }
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 @@ A:link, A:visited, A:active { text-decoration: underline }
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 7dbc146..5294822 100644
--- a/doc/APIsymbols.html
+++ b/doc/APIsymbols.html
@@ -143,7 +143,9 @@ A:link, A:visited, A:active { text-decoration: underline }
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
@@ -1058,6 +1060,8 @@ A:link, A:visited, A:active { text-decoration: underline }
XML_SCHEMAS_TYPE_FINAL_RESTRICTION
XML_SCHEMAS_TYPE_FINAL_UNION
XML_SCHEMAS_TYPE_GLOBAL
+XML_SCHEMAS_TYPE_INTERNAL_INVALID
+XML_SCHEMAS_TYPE_INTERNAL_RESOLVED
XML_SCHEMAS_TYPE_MARKED
XML_SCHEMAS_TYPE_MIXED
XML_SCHEMAS_TYPE_OWNED_ATTR_WILDCARD
@@ -1157,6 +1161,7 @@ A:link, A:visited, A:active { text-decoration: underline }
XML_SCHEMA_CONTENT_MIXED_OR_ELEMENTS
XML_SCHEMA_CONTENT_SIMPLE
XML_SCHEMA_CONTENT_UNKNOWN
+XML_SCHEMA_EXTRA_QNAMEREF
XML_SCHEMA_FACET_ENUMERATION
XML_SCHEMA_FACET_FRACTIONDIGITS
XML_SCHEMA_FACET_LENGTH
@@ -1187,6 +1192,7 @@ A:link, A:visited, A:active { text-decoration: underline }
XML_SCHEMA_TYPE_IDC_UNIQUE
XML_SCHEMA_TYPE_LIST
XML_SCHEMA_TYPE_NOTATION
+XML_SCHEMA_TYPE_PARTICLE
XML_SCHEMA_TYPE_RESTRICTION
XML_SCHEMA_TYPE_SEQUENCE
XML_SCHEMA_TYPE_SIMPLE
@@ -2546,6 +2552,7 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlSchemaGetFacetValueAsULong
xmlSchemaGetParserErrors
xmlSchemaGetPredefinedType
+xmlSchemaGetValType
xmlSchemaGetValidErrors
xmlSchemaInitTypes
xmlSchemaIsBuiltInTypeFacet
@@ -2582,7 +2589,9 @@ A:link, A:visited, A:active { text-decoration: underline }
xmlSchemaValidOption
xmlSchemaValidateDoc
xmlSchemaValidateFacet
+xmlSchemaValidateFacetWhtsp
xmlSchemaValidateLengthFacet
+xmlSchemaValidateLengthFacetWhtsp
xmlSchemaValidateListSimpleTypeFacet
xmlSchemaValidateOneElement
xmlSchemaValidatePredefinedType
diff --git a/doc/apibuild.py b/doc/apibuild.py
index bd88a18..8851cc0 100755
--- a/doc/apibuild.py
+++ b/doc/apibuild.py
@@ -33,6 +33,7 @@ ignored_files = {
"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 @@ class identifier:
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 @@ class identifier:
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 @@ class identifier:
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)
@@ -153,7 +161,6 @@ class identifier:
if conditionals != None:
self.set_conditionals(conditionals)
-
class index:
def __init__(self, name = "noname"):
self.name = name
@@ -168,15 +175,15 @@ class index:
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
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 +197,15 @@ class index:
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
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 +246,7 @@ class index:
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 +259,21 @@ class index:
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 +290,14 @@ class index:
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 +313,7 @@ class index:
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 +581,21 @@ class CParser:
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 +1618,14 @@ class docBuilder:
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 +1666,7 @@ class docBuilder:
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 +1888,7 @@ class docBuilder:
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 5f5cb40..8f24aed 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/Makefile.am b/doc/examples/Makefile.am
index 97edc55..0bc8934 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/Makefile.in b/doc/examples/Makefile.in
index 4e50e30..e020575 100644
--- a/doc/examples/Makefile.in
+++ b/doc/examples/Makefile.in
@@ -38,11 +38,11 @@ PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
-noinst_PROGRAMS = xpath1$(EXEEXT) parse1$(EXEEXT) parse2$(EXEEXT) \
- tree1$(EXEEXT) tree2$(EXEEXT) testWriter$(EXEEXT) \
- reader1$(EXEEXT) reader2$(EXEEXT) io1$(EXEEXT) parse3$(EXEEXT) \
- parse4$(EXEEXT) io2$(EXEEXT) xpath2$(EXEEXT) reader4$(EXEEXT) \
- reader3$(EXEEXT)
+noinst_PROGRAMS = reader3$(EXEEXT) io2$(EXEEXT) reader1$(EXEEXT) \
+ reader2$(EXEEXT) reader4$(EXEEXT) testWriter$(EXEEXT) \
+ parse3$(EXEEXT) tree2$(EXEEXT) tree1$(EXEEXT) xpath2$(EXEEXT) \
+ parse1$(EXEEXT) xpath1$(EXEEXT) io1$(EXEEXT) parse4$(EXEEXT) \
+ parse2$(EXEEXT)
subdir = doc/examples
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
@@ -322,31 +322,15 @@ target_alias = @target_alias@
INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I@srcdir@/include @THREAD_CFLAGS@ @Z_CFLAGS@
DEPS = $(top_builddir)/libxml2.la
LDADDS = @STATIC_BINARIES@ $(top_builddir)/libxml2.la @THREAD_LIBS@ @Z_LIBS@ $(ICONV_LIBS) -lm @WIN32_EXTRA_LIBADD@
-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
-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)
-testWriter_SOURCES = testWriter.c
-testWriter_LDFLAGS =
-testWriter_DEPENDENCIES = $(DEPS)
-testWriter_LDADD = @RDL_LIBS@ $(LDADDS)
+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
+reader3_SOURCES = reader3.c
+reader3_LDFLAGS =
+reader3_DEPENDENCIES = $(DEPS)
+reader3_LDADD = @RDL_LIBS@ $(LDADDS)
+io2_SOURCES = io2.c
+io2_LDFLAGS =
+io2_DEPENDENCIES = $(DEPS)
+io2_LDADD = @RDL_LIBS@ $(LDADDS)
reader1_SOURCES = reader1.c
reader1_LDFLAGS =
reader1_DEPENDENCIES = $(DEPS)
@@ -355,34 +339,50 @@ reader2_SOURCES = reader2.c
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)
-io2_SOURCES = io2.c
-io2_LDFLAGS =
-io2_DEPENDENCIES = $(DEPS)
-io2_LDADD = @RDL_LIBS@ $(LDADDS)
+tree2_SOURCES = tree2.c
+tree2_LDFLAGS =
+tree2_DEPENDENCIES = $(DEPS)
+tree2_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)
-reader3_SOURCES = reader3.c
-reader3_LDFLAGS =
-reader3_DEPENDENCIES = $(DEPS)
-reader3_LDADD = @RDL_LIBS@ $(LDADDS)
+parse1_SOURCES = parse1.c
+parse1_LDFLAGS =
+parse1_DEPENDENCIES = $(DEPS)
+parse1_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)
all: all-am
.SUFFIXES:
@@ -707,35 +707,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)
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
diff --git a/doc/examples/examples.xml b/doc/examples/examples.xml
index 7a683cd..91122ad 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 deef591..97fd455 100644
--- a/doc/html/libxml-parser.html
+++ b/doc/html/libxml-parser.html
@@ -145,7 +145,7 @@ void warningSAXFunc (void * ctx,
con
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 @@ void xmlParserInputDeallocate (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 @@ void warningSAXFunc (void * ctx,
const char * msg,
...
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 @@ void xmlParserInputDeallocate (xmlChar
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-schemasInternals.html b/doc/html/libxml-schemasInternals.html
index 92aae08..db6d611 100644
--- a/doc/html/libxml-schemasInternals.html
+++ b/doc/html/libxml-schemasInternals.html
@@ -10,7 +10,7 @@ A:link, A:visited, A:active { text-decoration: underline }
Module schemasInternals from libxml2
| | Module schemasInternals from libxml2 |
|
|
| internal interfaces for the XML Schemas handling and schema validity checking Table of Contents#define XML_SCHEMAS_ANYATTR_LAX #define XML_SCHEMAS_ANYATTR_SKIP #define XML_SCHEMAS_ANYATTR_STRICT #define XML_SCHEMAS_ANY_LAX #define XML_SCHEMAS_ANY_SKIP #define XML_SCHEMAS_ANY_STRICT #define XML_SCHEMAS_ATTRGROUP_GLOBAL #define XML_SCHEMAS_ATTRGROUP_MARKED #define XML_SCHEMAS_ATTRGROUP_WILDCARD_BUILDED #define XML_SCHEMAS_ATTR_FIXED #define XML_SCHEMAS_ATTR_GLOBAL #define XML_SCHEMAS_ATTR_INTERNAL_RESOLVED #define XML_SCHEMAS_ATTR_NSDEFAULT #define XML_SCHEMAS_ATTR_USE_OPTIONAL #define XML_SCHEMAS_ATTR_USE_PROHIBITED #define XML_SCHEMAS_ATTR_USE_REQUIRED #define XML_SCHEMAS_BLOCK_DEFAULT_EXTENSION #define XML_SCHEMAS_BLOCK_DEFAULT_RESTRICTION #define XML_SCHEMAS_BLOCK_DEFAULT_SUBSTITUTION #define XML_SCHEMAS_ELEM_ABSTRACT #define XML_SCHEMAS_ELEM_BLOCK_ABSENT #define XML_SCHEMAS_ELEM_BLOCK_EXTENSION #define XML_SCHEMAS_ELEM_BLOCK_RESTRICTION #define XML_SCHEMAS_ELEM_BLOCK_SUBSTITUTION #define XML_SCHEMAS_ELEM_CIRCULAR #define XML_SCHEMAS_ELEM_DEFAULT #define XML_SCHEMAS_ELEM_FINAL_ABSENT #define XML_SCHEMAS_ELEM_FINAL_EXTENSION #define XML_SCHEMAS_ELEM_FINAL_RESTRICTION #define XML_SCHEMAS_ELEM_FIXED #define XML_SCHEMAS_ELEM_GLOBAL #define XML_SCHEMAS_ELEM_INTERNAL_RESOLVED #define XML_SCHEMAS_ELEM_NILLABLE #define XML_SCHEMAS_ELEM_NSDEFAULT #define XML_SCHEMAS_ELEM_REF #define XML_SCHEMAS_ELEM_TOPLEVEL #define XML_SCHEMAS_FACET_COLLAPSE #define XML_SCHEMAS_FACET_PRESERVE #define XML_SCHEMAS_FACET_REPLACE #define XML_SCHEMAS_FACET_UNKNOWN #define XML_SCHEMAS_FINAL_DEFAULT_EXTENSION #define XML_SCHEMAS_FINAL_DEFAULT_LIST #define XML_SCHEMAS_FINAL_DEFAULT_RESTRICTION #define XML_SCHEMAS_FINAL_DEFAULT_UNION #define XML_SCHEMAS_INCLUDING_CONVERT_NS #define XML_SCHEMAS_QUALIF_ATTR #define XML_SCHEMAS_QUALIF_ELEM #define XML_SCHEMAS_TYPE_ABSTRACT #define XML_SCHEMAS_TYPE_BLOCK_DEFAULT #define XML_SCHEMAS_TYPE_BLOCK_EXTENSION #define XML_SCHEMAS_TYPE_BLOCK_RESTRICTION #define XML_SCHEMAS_TYPE_BUILTIN_PRIMITIVE #define XML_SCHEMAS_TYPE_DERIVATION_METHOD_EXTENSION #define XML_SCHEMAS_TYPE_DERIVATION_METHOD_RESTRICTION #define XML_SCHEMAS_TYPE_FACETSNEEDVALUE #define XML_SCHEMAS_TYPE_FINAL_DEFAULT #define XML_SCHEMAS_TYPE_FINAL_EXTENSION #define XML_SCHEMAS_TYPE_FINAL_LIST #define XML_SCHEMAS_TYPE_FINAL_RESTRICTION #define XML_SCHEMAS_TYPE_FINAL_UNION #define XML_SCHEMAS_TYPE_GLOBAL #define XML_SCHEMAS_TYPE_MARKED #define XML_SCHEMAS_TYPE_MIXED #define XML_SCHEMAS_TYPE_OWNED_ATTR_WILDCARD #define XML_SCHEMAS_TYPE_VARIETY_ABSENT #define XML_SCHEMAS_TYPE_VARIETY_ATOMIC #define XML_SCHEMAS_TYPE_VARIETY_LIST #define XML_SCHEMAS_TYPE_VARIETY_UNION #define XML_SCHEMAS_WILDCARD_COMPLETE Structure xmlSchemaAnnot struct _xmlSchemaAnnot
+ Module schemasInternals from libxml2 | | Module schemasInternals from libxml2 |
|
|
| internal interfaces for the XML Schemas handling and schema validity checking Table of Contents#define XML_SCHEMAS_ANYATTR_LAX #define XML_SCHEMAS_ANYATTR_SKIP #define XML_SCHEMAS_ANYATTR_STRICT #define XML_SCHEMAS_ANY_LAX #define XML_SCHEMAS_ANY_SKIP #define XML_SCHEMAS_ANY_STRICT #define XML_SCHEMAS_ATTRGROUP_GLOBAL #define XML_SCHEMAS_ATTRGROUP_MARKED #define XML_SCHEMAS_ATTRGROUP_WILDCARD_BUILDED #define XML_SCHEMAS_ATTR_FIXED #define XML_SCHEMAS_ATTR_GLOBAL #define XML_SCHEMAS_ATTR_INTERNAL_RESOLVED #define XML_SCHEMAS_ATTR_NSDEFAULT #define XML_SCHEMAS_ATTR_USE_OPTIONAL #define XML_SCHEMAS_ATTR_USE_PROHIBITED #define XML_SCHEMAS_ATTR_USE_REQUIRED #define XML_SCHEMAS_BLOCK_DEFAULT_EXTENSION #define XML_SCHEMAS_BLOCK_DEFAULT_RESTRICTION #define XML_SCHEMAS_BLOCK_DEFAULT_SUBSTITUTION #define XML_SCHEMAS_ELEM_ABSTRACT #define XML_SCHEMAS_ELEM_BLOCK_ABSENT #define XML_SCHEMAS_ELEM_BLOCK_EXTENSION #define XML_SCHEMAS_ELEM_BLOCK_RESTRICTION #define XML_SCHEMAS_ELEM_BLOCK_SUBSTITUTION #define XML_SCHEMAS_ELEM_CIRCULAR #define XML_SCHEMAS_ELEM_DEFAULT #define XML_SCHEMAS_ELEM_FINAL_ABSENT #define XML_SCHEMAS_ELEM_FINAL_EXTENSION #define XML_SCHEMAS_ELEM_FINAL_RESTRICTION #define XML_SCHEMAS_ELEM_FIXED #define XML_SCHEMAS_ELEM_GLOBAL #define XML_SCHEMAS_ELEM_INTERNAL_RESOLVED #define XML_SCHEMAS_ELEM_NILLABLE #define XML_SCHEMAS_ELEM_NSDEFAULT #define XML_SCHEMAS_ELEM_REF #define XML_SCHEMAS_ELEM_TOPLEVEL #define XML_SCHEMAS_FACET_COLLAPSE #define XML_SCHEMAS_FACET_PRESERVE #define XML_SCHEMAS_FACET_REPLACE #define XML_SCHEMAS_FACET_UNKNOWN #define XML_SCHEMAS_FINAL_DEFAULT_EXTENSION #define XML_SCHEMAS_FINAL_DEFAULT_LIST #define XML_SCHEMAS_FINAL_DEFAULT_RESTRICTION #define XML_SCHEMAS_FINAL_DEFAULT_UNION #define XML_SCHEMAS_INCLUDING_CONVERT_NS #define XML_SCHEMAS_QUALIF_ATTR #define XML_SCHEMAS_QUALIF_ELEM #define XML_SCHEMAS_TYPE_ABSTRACT #define XML_SCHEMAS_TYPE_BLOCK_DEFAULT #define XML_SCHEMAS_TYPE_BLOCK_EXTENSION #define XML_SCHEMAS_TYPE_BLOCK_RESTRICTION #define XML_SCHEMAS_TYPE_BUILTIN_PRIMITIVE #define XML_SCHEMAS_TYPE_DERIVATION_METHOD_EXTENSION #define XML_SCHEMAS_TYPE_DERIVATION_METHOD_RESTRICTION #define XML_SCHEMAS_TYPE_FACETSNEEDVALUE #define XML_SCHEMAS_TYPE_FINAL_DEFAULT #define XML_SCHEMAS_TYPE_FINAL_EXTENSION #define XML_SCHEMAS_TYPE_FINAL_LIST #define XML_SCHEMAS_TYPE_FINAL_RESTRICTION #define XML_SCHEMAS_TYPE_FINAL_UNION #define XML_SCHEMAS_TYPE_GLOBAL #define XML_SCHEMAS_TYPE_INTERNAL_INVALID #define XML_SCHEMAS_TYPE_INTERNAL_RESOLVED #define XML_SCHEMAS_TYPE_MARKED #define XML_SCHEMAS_TYPE_MIXED #define XML_SCHEMAS_TYPE_OWNED_ATTR_WILDCARD #define XML_SCHEMAS_TYPE_VARIETY_ABSENT #define XML_SCHEMAS_TYPE_VARIETY_ATOMIC #define XML_SCHEMAS_TYPE_VARIETY_LIST #define XML_SCHEMAS_TYPE_VARIETY_UNION #define XML_SCHEMAS_WILDCARD_COMPLETE Structure xmlSchemaAnnot struct _xmlSchemaAnnot
Typedef xmlSchemaAnnot * xmlSchemaAnnotPtr
Structure xmlSchemaAttribute struct _xmlSchemaAttribute
Structure xmlSchemaAttributeGroup struct _xmlSchemaAttributeGroup
@@ -104,6 +104,8 @@ The content of this structure is not made public by the API.
Macro: XML_SCHEMAS_TYPE_FINAL_RESTRICTION#define XML_SCHEMAS_TYPE_FINAL_RESTRICTION the simpleType/complexType has a final of "restriction".
Macro: XML_SCHEMAS_TYPE_FINAL_UNION#define XML_SCHEMAS_TYPE_FINAL_UNION the simpleType has a final of "union".
Macro: XML_SCHEMAS_TYPE_GLOBAL#define XML_SCHEMAS_TYPE_GLOBAL the type is global
+Macro: XML_SCHEMAS_TYPE_INTERNAL_INVALID#define XML_SCHEMAS_TYPE_INTERNAL_INVALID indicates that the type is invalid
+Macro: XML_SCHEMAS_TYPE_INTERNAL_RESOLVED#define XML_SCHEMAS_TYPE_INTERNAL_RESOLVED indicates that the type was typefixed
Macro: XML_SCHEMAS_TYPE_MARKED#define XML_SCHEMAS_TYPE_MARKED Marks the item as marked; used for circular checks.
Macro: XML_SCHEMAS_TYPE_MIXED#define XML_SCHEMAS_TYPE_MIXED the element content type is mixed
Macro: XML_SCHEMAS_TYPE_OWNED_ATTR_WILDCARD#define XML_SCHEMAS_TYPE_OWNED_ATTR_WILDCARD the complexType owns an attribute wildcard, i.e. it can be freed by the complexType
@@ -268,6 +270,7 @@ The content of this structure is not made public by the API.
XML_SCHEMA_TYPE_IDC_UNIQUE = 22
XML_SCHEMA_TYPE_IDC_KEY = 23
XML_SCHEMA_TYPE_IDC_KEYREF = 24
+ XML_SCHEMA_TYPE_PARTICLE = 25
XML_SCHEMA_FACET_MININCLUSIVE = 1000
XML_SCHEMA_FACET_MINEXCLUSIVE = 1001
XML_SCHEMA_FACET_MAXINCLUSIVE = 1002
@@ -280,6 +283,7 @@ The content of this structure is not made public by the API.
XML_SCHEMA_FACET_LENGTH = 1009
XML_SCHEMA_FACET_MAXLENGTH = 1010
XML_SCHEMA_FACET_MINLENGTH = 1011
+ = 2000
}
Structure xmlSchemaValStructure xmlSchemaVal struct _xmlSchemaVal {
The content of this structure is not made public by the API.
diff --git a/doc/html/libxml-xmlerror.html b/doc/html/libxml-xmlerror.html
index 425bcfc..5d8f74e 100644
--- a/doc/html/libxml-xmlerror.html
+++ b/doc/html/libxml-xmlerror.html
@@ -657,6 +657,8 @@ void xmlStructuredErrorFunc (void * userD
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-xmlschemas.html b/doc/html/libxml-xmlschemas.html
index 91b1ab9..69cbc50 100644
--- a/doc/html/libxml-xmlschemas.html
+++ b/doc/html/libxml-xmlschemas.html
@@ -66,6 +66,7 @@ void xmlSchemaValidityWarningFunc (v
int preserve : whether to free the document
int counter : used to give ononymous components uniqu
xmlHashTablePtr idcDef
+ void * volatiles : Misc. helper items (e.g. reference item
} Structure xmlSchemaParserCtxtStructure xmlSchemaParserCtxt struct _xmlSchemaParserCtxt {
The content of this structure is not made public by the API.
} Structure xmlSchemaValidCtxtStructure xmlSchemaValidCtxt struct _xmlSchemaValidCtxt {
diff --git a/doc/html/libxml-xmlschemastypes.html b/doc/html/libxml-xmlschemastypes.html
index cf304ad..ced84aa 100644
--- a/doc/html/libxml-xmlschemastypes.html
+++ b/doc/html/libxml-xmlschemastypes.html
@@ -24,6 +24,7 @@ A:link, A:visited, A:active { text-decoration: underline }
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 @@ A:link, A:visited, A:active { text-decoration: underline }
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 @@ A:link, A:visited, A:active { text-decoration: underline }
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: xmlSchemaGetBuiltInTypexmlSchemaTypePtr 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: xmlSchemaGetCanonValueint 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: xmlSchemaGetFacetValueAsULongunsigned 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: xmlSchemaGetFacetValueAsULongunsigned long xmlSchemaGetFacetValueAsULong (xmlSchemaFacetPtr facet)
Extract the value of a facet
facet: | an schemas type facet | Returns: | the value as a long |
Function: xmlSchemaGetPredefinedTypexmlSchemaTypePtr 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: xmlSchemaInitTypesvoid 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: xmlSchemaGetValTypexmlSchemaValType xmlSchemaGetValType (xmlSchemaValPtr val)
+ Accessor for the type of a value
+Function: xmlSchemaInitTypesvoid xmlSchemaInitTypes (void)
Initialize the default XML Schemas type library
Function: xmlSchemaIsBuiltInTypeFacetint xmlSchemaIsBuiltInTypeFacet (xmlSchemaTypePtr type, int facetType)
Evaluates if a specific facet can be used in conjunction with a type.
@@ -85,9 +90,13 @@ A:link, A:visited, A:active { text-decoration: underline }
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: xmlSchemaValidateFacetint 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: xmlSchemaValidateLengthFacetint 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: xmlSchemaValidateFacetWhtspint 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: xmlSchemaValidateLengthFacetint 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: xmlSchemaValidateListSimpleTypeFacetint 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: xmlSchemaValidateLengthFacetWhtspint 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: xmlSchemaValidateListSimpleTypeFacetint 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: xmlSchemaValidatePredefinedTypeint 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 df10929..0be6307 100644
--- a/doc/libxml2-api.xml
+++ b/doc/libxml2-api.xml
@@ -1063,6 +1063,7 @@
+
@@ -1107,6 +1108,7 @@
+
@@ -1121,6 +1123,7 @@
+
@@ -1143,6 +1146,7 @@
+
@@ -1164,7 +1168,7 @@
-
+
@@ -1208,9 +1212,9 @@
+
-
@@ -2066,7 +2070,7 @@
-
+
@@ -2086,7 +2090,6 @@
-
@@ -2108,6 +2111,7 @@
+
@@ -2266,7 +2270,7 @@
-
+
@@ -2297,9 +2301,10 @@
+
-
+
@@ -2389,6 +2394,7 @@
+
@@ -2478,7 +2484,7 @@
-
+
@@ -2865,6 +2871,7 @@
+
@@ -2875,6 +2882,7 @@
+
@@ -2888,6 +2896,7 @@
+
@@ -4042,6 +4051,12 @@
the type is global
+
+ indicates that the type is invalid
+
+
+ indicates that the type was typefixed
+
Marks the item as marked; used for circular checks.
@@ -4316,7 +4331,9 @@
+
+
@@ -5248,6 +5265,7 @@
+
@@ -5278,6 +5296,7 @@
+
@@ -6041,6 +6060,7 @@ actually an xmlCharEncoding'/>
+
@@ -6407,7 +6427,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 +6436,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 +6445,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 +6453,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_LEGACY_ENABLED)
An attribute definition has been parsed DEPRECATED: use xmlSAX2AttributeDecl()
@@ -6445,7 +6465,7 @@ actually an xmlCharEncoding'/>
-
+
An attribute definition has been parsed.
@@ -6456,14 +6476,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 +6491,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 +6506,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 +6551,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 +6566,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 +6581,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 +6610,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 +6619,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_LEGACY_ENABLED)
An element definition has been parsed DEPRECATED: use xmlSAX2ElementDecl()
@@ -6608,7 +6628,7 @@ actually an xmlCharEncoding'/>
-
+
An element definition has been parsed.
@@ -6616,25 +6636,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 +6662,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 +6679,7 @@ actually an xmlCharEncoding'/>
-
+
An entity definition has been parsed.
@@ -6669,14 +6689,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 +6705,7 @@ actually an xmlCharEncoding'/>
-
+
Callback on external subset declaration.
@@ -6693,14 +6713,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 +6728,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 +6745,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 +6809,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 +6839,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 +6847,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 +6872,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 +6882,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 +6892,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 +6901,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 +6913,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 +6924,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 +6951,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
Dump an HTML document. Formating return/spaces are added.
@@ -6939,14 +6959,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 +6974,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 +6998,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 +7074,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 +7082,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 +7092,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_HTML_ENABLED) && defined(LIBXML_OUTPUT_ENABLED)
Dump an HTML node, recursive behaviour,children are printed too.
@@ -7082,7 +7102,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 +7111,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 +7133,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 +7175,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_HTML_ENABLED)
parse an XML from a file descriptor and build a tree.
@@ -7164,7 +7184,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_HTML_ENABLED)
parse an XML file from the filesystem or the network.
@@ -7172,7 +7192,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_HTML_ENABLED)
parse an HTML document from I/O functions and source and build a tree.
@@ -7183,7 +7203,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_HTML_ENABLED)
parse an XML in-memory document and build a tree.
@@ -7193,7 +7213,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 +7222,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 +7231,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 +7246,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 +7255,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 +7276,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 +7327,7 @@ actually an xmlCharEncoding'/>
-
+
Callback on internal subset declaration.
@@ -7315,18 +7335,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 +7354,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 +7373,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 +7393,7 @@ actually an xmlCharEncoding'/>
-
+
What to do when a notation declaration has been parsed.
@@ -7381,7 +7401,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_LEGACY_ENABLED)
A processing instruction has been parsed. DEPRECATED: use xmlSAX2ProcessingInstruction()
@@ -7389,27 +7409,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 +7437,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 +7483,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 +7496,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 +7513,7 @@ actually an xmlCharEncoding'/>
-
+
What to do when an unparsed entity declaration is parsed.
@@ -7502,27 +7522,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 +7560,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_XPTR_ENABLED)
This is the prototype for a extended link set detection callback.
@@ -7553,43 +7573,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 +7619,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_CATALOG_ENABLED)
Add an entry in the catalog, it may overwrite existing but different entries.
@@ -7608,21 +7628,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 +7650,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 +7684,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 +7706,7 @@ actually an xmlCharEncoding'/>
-
+
Register a new entity for this document DTD external subset.
@@ -7696,7 +7716,7 @@ actually an xmlCharEncoding'/>
-
+
Register a new element declaration
@@ -7705,13 +7725,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 +7739,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 +7754,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 +7769,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 +7795,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 +7822,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 +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 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 +7847,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 +7856,7 @@ actually an xmlCharEncoding'/>
-
+
defined(LIBXML_REGEXP_ENABLED) && defined(LIBXML_AUTOMATA_ENABLED)
Create a new counter
@@ -7844,7 +7864,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 +7873,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 +7881,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 +7893,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 +7906,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 +7922,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 +7933,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.
-
+
|
|
|
|
|
|
|
|
|
|