• Home
Name Date Size #Lines LOC

..--

.gitlab-ci/04-Jul-2025-212151

doc/04-Jul-2025-79,46978,834

example/04-Jul-2025-3,3992,070

fuzz/04-Jul-2025-7,7016,093

include/04-Jul-2025-15,2559,868

m4/04-Jul-2025-488467

os400/04-Jul-2025-33,16227,369

python/04-Jul-2025-12,3199,874

result/04-Jul-2025-304,081276,284

test/04-Jul-2025-130,880119,346

tools/04-Jul-2025-2,3461,759

win32/04-Jul-2025-1,9881,547

xstc/04-Jul-2025-1,044780

.editorconfigD04-Jul-2025142 128

.gitattributesD04-Jul-202532 32

.gitignoreD04-Jul-2025714 6660

.gitlab-ci.ymlD04-Jul-20256.7 KiB327278

Android.bpD04-Jul-202535.7 KiB1,0781,059

CMakeLists.txtD04-Jul-202523.5 KiB721657

CleanSpec.mkD04-Jul-20252.3 KiB532

CopyrightD04-Jul-20251.3 KiB2520

HTMLparser.cD04-Jul-2025169.3 KiB6,3064,138

HTMLtree.cD04-Jul-202531.7 KiB1,133716

MAINTAINERS.mdD04-Jul-20253.4 KiB11973

METADATAD04-Jul-20251,003 2926

MODULE_LICENSE_MITD04-Jul-20250

Makefile.amD04-Jul-20256.9 KiB258207

NEWSD04-Jul-2025226.6 KiB4,8744,233

OWNERSD04-Jul-202546 21

README.mdD04-Jul-20255.8 KiB184128

README.zOSD04-Jul-20259.6 KiB213197

SAX2.cD04-Jul-202577 KiB2,8341,846

VERSIOND04-Jul-20257 21

autogen.shD04-Jul-20252.3 KiB9879

buf.cD04-Jul-202528.7 KiB1,277670

c14n.cD04-Jul-202567.1 KiB2,2191,277

catalog.cD04-Jul-202593.7 KiB3,7552,533

chvalid.cD04-Jul-202511.9 KiB337206

chvalid.defD04-Jul-20255.9 KiB362354

config.hD04-Jul-20253.1 KiB11028

config.h.cmake.inD04-Jul-20251.1 KiB3927

configure.acD04-Jul-202530.2 KiB1,089976

debugXML.cD04-Jul-202543.8 KiB1,5621,232

dict.cD04-Jul-202525 KiB1,072600

encoding.cD04-Jul-202574 KiB2,7621,814

entities.cD04-Jul-202526.6 KiB1,018631

error.cD04-Jul-202540.4 KiB1,408983

globals.cD04-Jul-202531.8 KiB1,256672

hash.cD04-Jul-202534.4 KiB1,346723

html5ent.incD04-Jul-2025122.3 KiB1,6081,604

iso8859x.incD04-Jul-202546.1 KiB731701

legacy.cD04-Jul-202523 KiB1,074786

libxml-2.0.pc.inD04-Jul-2025362 1311

libxml.hD04-Jul-20252.6 KiB10374

libxml.m4D04-Jul-2025529 1714

libxml2-config.cmake.cmake.inD04-Jul-20257.5 KiB172150

libxml2-config.cmake.inD04-Jul-20256 KiB151131

libxml2.doapD04-Jul-20251.8 KiB4036

libxml2.symsD04-Jul-202544 KiB2,2862,026

lintmain.cD04-Jul-2025251 156

list.cD04-Jul-202515.3 KiB765390

meson.buildD04-Jul-202515.8 KiB634531

meson_options.txtD04-Jul-20253.1 KiB202167

nanohttp.cD04-Jul-202544.8 KiB1,8081,248

parser.cD04-Jul-2025387.3 KiB14,3178,792

parserInternals.cD04-Jul-202590.2 KiB3,4651,877

pattern.cD04-Jul-202557.9 KiB2,4361,668

post_update.shD04-Jul-2025353 2818

relaxng.cD04-Jul-2025349.6 KiB10,8728,298

runsuite.cD04-Jul-202530.9 KiB1,149973

runtest.cD04-Jul-2025142.1 KiB5,5364,174

runxmlconf.cD04-Jul-202516 KiB604488

schematron.cD04-Jul-202560.3 KiB2,0501,431

shell.cD04-Jul-202549.2 KiB1,6291,255

testModule.cD04-Jul-20251.8 KiB8559

testapi.cD04-Jul-20251.2 MiB46,05238,753

testchar.cD04-Jul-202525.2 KiB1,019758

testdict.cD04-Jul-202520.6 KiB818632

testdso.cD04-Jul-2025166 139

testlimits.cD04-Jul-202532.8 KiB1,322803

testparser.cD04-Jul-202526.6 KiB1,086875

testrecurse.cD04-Jul-202525.1 KiB947676

threads.cD04-Jul-202511.6 KiB546306

timsort.hD04-Jul-202513.9 KiB604436

tree.cD04-Jul-2025231.1 KiB9,2815,623

uri.cD04-Jul-202570.2 KiB2,8551,816

valid.cD04-Jul-2025183.7 KiB6,9994,614

xinclude.cD04-Jul-202560.1 KiB2,2501,506

xlink.cD04-Jul-20254.3 KiB17269

xml2-config.inD04-Jul-20251.8 KiB10986

xmlIO.cD04-Jul-202567.9 KiB2,8891,655

xmlcatalog.cD04-Jul-202515.1 KiB635531

xmllint.cD04-Jul-2025100 KiB3,6062,917

xmlmemory.cD04-Jul-202512.4 KiB562262

xmlmodule.cD04-Jul-20256.3 KiB301139

xmlreader.cD04-Jul-2025152.4 KiB5,4873,683

xmlregexp.cD04-Jul-2025209.7 KiB7,9675,849

xmlsave.cD04-Jul-202582.1 KiB2,9001,913

xmlschemas.cD04-Jul-2025804.5 KiB28,89619,058

xmlschemastypes.cD04-Jul-2025178 KiB6,2154,546

xmlstring.cD04-Jul-202529.9 KiB1,203662

xmlunicode.cD04-Jul-2025100 KiB3,1791,619

xmlwriter.cD04-Jul-2025121 KiB4,7403,157

xpath.cD04-Jul-2025339.2 KiB12,7168,210

xpointer.cD04-Jul-202517.5 KiB674388

xzlib.cD04-Jul-202524.2 KiB822637

README.md

1# libxml2
2
3libxml2 is an XML toolkit implemented in C, originally developed for
4the GNOME Project.
5
6Official releases can be downloaded from
7<https://download.gnome.org/sources/libxml2/>
8
9The git repository is hosted on GNOME's GitLab server:
10<https://gitlab.gnome.org/GNOME/libxml2>
11
12Bugs should be reported at
13<https://gitlab.gnome.org/GNOME/libxml2/-/issues>.
14Please report *security issues* to our bug tracker as well. Make sure to
15mark the issue as *confidential*.
16
17Documentation is available at
18<https://gitlab.gnome.org/GNOME/libxml2/-/wikis>
19
20## License
21
22This code is released under the MIT License, see the Copyright file.
23
24## Build instructions
25
26libxml2 can be built with GNU Autotools, CMake, meson or several other
27build systems in platform-specific subdirectories.
28
29### Autotools (for POSIX systems like Linux, BSD, macOS)
30
31If you build from a Git tree, you have to install Autotools and start
32by generating the configuration files with:
33
34    ./autogen.sh [configuration options]
35
36If you build from a source tarball, extract the archive with:
37
38    tar xf libxml2-xxx.tar.gz
39    cd libxml2-xxx
40
41Then you can configure and build the library:
42
43    ./configure [configuration options]
44    make
45
46The following options disable or enable code modules and relevant symbols:
47
48    --with-c14n             Canonical XML 1.0 support (on)
49    --with-catalog          XML Catalogs support (on)
50    --with-debug            debugging module (on)
51    --with-history          history support for xmllint shell (off)
52    --with-readline[=DIR]   use readline in DIR for shell (off)
53    --with-html             HTML parser (on)
54    --with-http             HTTP support (off)
55    --with-iconv[=DIR]      iconv support (on)
56    --with-icu              ICU support (off)
57    --with-iso8859x         ISO-8859-X support if no iconv (on)
58    --with-lzma[=DIR]       use liblzma in DIR (off)
59    --with-modules          dynamic modules support (on)
60    --with-output           serialization support (on)
61    --with-pattern          xmlPattern selection interface (on)
62    --with-push             push parser interfaces (on)
63    --with-python           Python bindings (on)
64    --with-reader           xmlReader parsing interface (on)
65    --with-regexps          regular expressions support (on)
66    --with-sax1             older SAX1 interface (on)
67    --with-schemas          XML Schemas 1.0 and RELAX NG support (on)
68    --with-schematron       Schematron support (on)
69    --with-threads          multithreading support (on)
70    --with-thread-alloc     per-thread malloc hooks (off)
71    --with-valid            DTD validation support (on)
72    --with-writer           xmlWriter serialization interface (on)
73    --with-xinclude         XInclude 1.0 support (on)
74    --with-xpath            XPath 1.0 support (on)
75    --with-xptr             XPointer support (on)
76    --with-zlib[=DIR]       use libz in DIR (off)
77
78Other options:
79
80    --with-minimum          build a minimally sized library (off)
81    --with-legacy           maximum ABI compatibility (off)
82
83Note that by default, no optimization options are used. You have to
84enable them manually, for example with:
85
86    CFLAGS='-O2 -fno-semantic-interposition' ./configure
87
88Now you can run the test suite with:
89
90    make check
91
92Please report test failures to the bug tracker.
93
94Then you can install the library:
95
96    make install
97
98At that point you may have to rerun ldconfig or a similar utility to
99update your list of installed shared libs.
100
101### CMake (mainly for Windows)
102
103Another option for compiling libxml is using CMake:
104
105    cmake -E tar xf libxml2-xxx.tar.gz
106    cmake -S libxml2-xxx -B libxml2-xxx-build [possible options]
107    cmake --build libxml2-xxx-build
108    cmake --install libxml2-xxx-build
109
110Common CMake options include:
111
112    -D BUILD_SHARED_LIBS=OFF            # build static libraries
113    -D CMAKE_BUILD_TYPE=Release         # specify build type
114    -D CMAKE_INSTALL_PREFIX=/usr/local  # specify the install path
115    -D LIBXML2_WITH_ICONV=OFF           # disable iconv
116    -D LIBXML2_WITH_PYTHON=OFF          # disable Python
117    -D LIBXML2_WITH_ZLIB=ON             # enable zlib
118
119You can also open the libxml source directory with its CMakeLists.txt
120directly in various IDEs such as CLion, QtCreator, or Visual Studio.
121
122### Meson
123
124Still somewhat experimental, see
125[issue 743](https://gitlab.gnome.org/GNOME/libxml2/-/issues/743).
126
127Libxml can also be built with meson. Without option, simply call
128
129    meson setup builddir
130    ninja -C builddir
131
132To add options, see the meson_options.txt file. For example:
133
134    meson setup \
135        -Dprefix=$prefix \
136        -Dhistory=enabled \
137        -Dhttp=enabled \
138        -Dschematron=disabled \
139        -Dzlib=enabled \
140        builddir
141
142To install libxml:
143
144    ninja -C builddir install
145
146To launch tests:
147
148    meson test -C builddir
149
150## Dependencies
151
152libxml2 supports POSIX and Windows operating systems.
153
154The iconv function is required for conversion of character encodings.
155This function is part of POSIX.1-2001. If your platform doesn't provide
156iconv, you need an external libiconv library, for example
157[GNU libiconv](https://www.gnu.org/software/libiconv/). Using
158[ICU](https://icu.unicode.org/) is also supported but discouraged.
159
160If enabled, libxml uses [libz](https://zlib.net/) or
161[liblzma](https://tukaani.org/xz/) to support reading compressed files.
162Use of this feature is discouraged.
163
164The xmllint executable uses libreadline and libhistory if enabled.
165
166## Contributing
167
168The current version of the code can be found in GNOME's GitLab at
169<https://gitlab.gnome.org/GNOME/libxml2>. The best way to get involved
170is by creating issues and merge requests on GitLab.
171
172All code must conform to C89 and pass the GitLab CI tests. Add regression
173tests if possible.
174
175## Authors
176
177- Daniel Veillard
178- Bjorn Reese
179- William Brack
180- Igor Zlatkovic for the Windows port
181- Aleksey Sanin
182- Nick Wellnhofer
183
184

README.zOS

1Notes for compiling on zOS:
2
3- since testapi.c file is huge (over 52000 lines), it's compilation
4  fails: I skipped the problem by removing all references to testapi in the
5  Makefile.in, but it would be neater if one can build without test files
6  (I didn't find an option in configure...)
7
8- since the name of files (or qualifier) in PDS are limited to 8 I had to
9  rename xmlschemas.c and xmlschemastypes.c in (resp.) xmlsche.c xmlschet.c
10  (and I had to modify all occurrences of these files accordingly in the
11  rest of the Makefile !!!).
12
13- in order to copy objects to PDS, I had the cp command at line 860
14  of Makefile.in
15
16libxml2.la: $(libxml2_la_OBJECTS) $(libxml2_la_DEPENDENCIES)
17        $(AM_V_CCLD)$(libxml2_la_LINK) -rpath $(libdir) $(libxml2_la_OBJECTS) $(libxml2_la_LIBADD) $(LIBS)
18        # Copy objects to PDS
19        @list='$(libxml2_OBJECTS)' ; for p in $$list; do \
20          cp -ACMv $$p "//'<PDS NAME>'"; \
21        done
22
23	with <PDS NAME> stands for the name of my PDS and
24
25libxml2_OBJECTS = SAX.o entities.o encoding.o error.o \
26	parserInternals.o parser.o tree.o hash.o list.o xmlIO.o \
27	xmlmemory.o uri.o valid.o xlink.o HTMLparser.o \
28	HTMLtree.o debugXML.o xpath.o xpointer.o xinclude.o \
29	nanohttp.o nanoftp.o triostr.o trio.o catalog.o globals.o \
30	threads.o c14n.o xmlstring.o buf.o xmlregexp.o \
31	xmlsche.o xmlschet.o xmlunicode.o \
32	xmlreader.o relaxng.o dict.o SAX2.o \
33	xmlwriter.o legacy.o chvalid.o pattern.o xmlsave.o \
34	xmlmodule.o schematron.o xzlib.o
35
36In order to handle the support of zOS without breaking the existing
37Makefile maybe a new option/flag zOs would copy xmlschemas.c and
38xmlschemastypes.c files and use specifics targets rather than existing
39ones with the longer names... A variable to handle the PDS name has to
40be provided also...
41
42See patch below for set of changes to Makefile.in
43
44Stéphane Michaut <smichaut@axway.com>
45July 2017
46
47
48--- Makefile.in	2017-08-01 08:17:15.000000000 +0200
49+++ Makefile-new.in	2017-08-01 08:07:26.000000000 +0200
50@@ -41,7 +41,7 @@
51 	testSAX$(EXEEXT) testHTML$(EXEEXT) testXPath$(EXEEXT) \
52 	testURI$(EXEEXT) testThreads$(EXEEXT) testC14N$(EXEEXT) \
53 	testAutomata$(EXEEXT) testRegexp$(EXEEXT) testReader$(EXEEXT) \
54-	testapi$(EXEEXT) testModule$(EXEEXT) runtest$(EXEEXT) \
55+	testModule$(EXEEXT) runtest$(EXEEXT) \
56 	runsuite$(EXEEXT) testchar$(EXEEXT) testdict$(EXEEXT) \
57 	runxmlconf$(EXEEXT) testrecurse$(EXEEXT) testlimits$(EXEEXT)
58 bin_PROGRAMS = xmllint$(EXEEXT) xmlcatalog$(EXEEXT)
59@@ -106,6 +106,7 @@
60 	debugXML.c xpath.c xpointer.c xinclude.c nanohttp.c nanoftp.c \
61 	DOCBparser.c catalog.c globals.c threads.c c14n.c xmlstring.c \
62 	buf.c xmlregexp.c xmlschemas.c xmlschemastypes.c xmlunicode.c \
63+        xmlsche.c xmlschet.c \
64 	triostr.c trio.c xmlreader.c relaxng.c dict.c SAX2.c \
65 	xmlwriter.c legacy.c chvalid.c pattern.c xmlsave.c xmlmodule.c \
66 	schematron.c xzlib.c
67@@ -118,10 +119,24 @@
68 	nanohttp.lo nanoftp.lo $(am__objects_1) catalog.lo globals.lo \
69 	threads.lo c14n.lo xmlstring.lo buf.lo xmlregexp.lo \
70 	xmlschemas.lo xmlschemastypes.lo xmlunicode.lo \
71+        xmlsche.lo xmlschet.lo \
72 	$(am__objects_2) xmlreader.lo relaxng.lo dict.lo SAX2.lo \
73 	xmlwriter.lo legacy.lo chvalid.lo pattern.lo xmlsave.lo \
74 	xmlmodule.lo schematron.lo xzlib.lo
75 libxml2_la_OBJECTS = $(am_libxml2_la_OBJECTS)
76+
77+libxml2_OBJECTS = SAX.o entities.o encoding.o error.o \
78+	parserInternals.o parser.o tree.o hash.o list.o xmlIO.o \
79+	xmlmemory.o uri.o valid.o xlink.o HTMLparser.o \
80+	HTMLtree.o debugXML.o xpath.o xpointer.o xinclude.o \
81+	nanohttp.o nanoftp.o triostr.o trio.o catalog.o globals.o \
82+	threads.o c14n.o xmlstring.o buf.o xmlregexp.o \
83+	xmlschemas.o xmlschemastypes.o xmlunicode.o \
84+	xmlsche.o xmlschemast.o \
85+	xmlreader.o relaxng.o dict.o SAX2.o \
86+	xmlwriter.o legacy.o chvalid.o pattern.o xmlsave.o \
87+	xmlmodule.o schematron.o xzlib.o
88+
89 AM_V_lt = $(am__v_lt_$(V))
90 am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
91 am__v_lt_0 = --silent
92@@ -216,11 +231,6 @@
93 testXPath_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
94 	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
95 	$(testXPath_LDFLAGS) $(LDFLAGS) -o $@
96-am_testapi_OBJECTS = testapi.$(OBJEXT)
97-testapi_OBJECTS = $(am_testapi_OBJECTS)
98-testapi_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
99-	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
100-	$(testapi_LDFLAGS) $(LDFLAGS) -o $@
101 am_testchar_OBJECTS = testchar.$(OBJEXT)
102 testchar_OBJECTS = $(am_testchar_OBJECTS)
103 testchar_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
104@@ -285,7 +295,7 @@
105 	$(testReader_SOURCES) $(testRegexp_SOURCES) \
106 	$(testRelax_SOURCES) $(testSAX_SOURCES) $(testSchemas_SOURCES) \
107 	$(testThreads_SOURCES) $(testURI_SOURCES) $(testXPath_SOURCES) \
108-	$(testapi_SOURCES) $(testchar_SOURCES) $(testdict_SOURCES) \
109+	$(testchar_SOURCES) $(testdict_SOURCES) \
110 	$(testlimits_SOURCES) $(testrecurse_SOURCES) \
111 	$(xmlcatalog_SOURCES) $(xmllint_SOURCES)
112 DIST_SOURCES = $(am__libxml2_la_SOURCES_DIST) $(testdso_la_SOURCES) \
113@@ -295,7 +305,7 @@
114 	$(testReader_SOURCES) $(testRegexp_SOURCES) \
115 	$(testRelax_SOURCES) $(testSAX_SOURCES) $(testSchemas_SOURCES) \
116 	$(am__testThreads_SOURCES_DIST) $(testURI_SOURCES) \
117-	$(testXPath_SOURCES) $(testapi_SOURCES) $(testchar_SOURCES) \
118+	$(testXPath_SOURCES) $(testchar_SOURCES) \
119 	$(testdict_SOURCES) $(testlimits_SOURCES) \
120 	$(testrecurse_SOURCES) $(xmlcatalog_SOURCES) \
121 	$(xmllint_SOURCES)
122@@ -700,11 +710,6 @@
123 noinst_LTLIBRARIES = testdso.la
124 testdso_la_SOURCES = testdso.c
125 testdso_la_LDFLAGS = -module -no-undefined -avoid-version -rpath $(libdir)
126-BUILT_SOURCES = testapi.c
127-testapi_SOURCES = testapi.c
128-testapi_LDFLAGS =
129-testapi_DEPENDENCIES = $(DEPS)
130-testapi_LDADD = $(LDADDS)
131 runxmlconf_SOURCES = runxmlconf.c
132 runxmlconf_LDFLAGS =
133 runxmlconf_DEPENDENCIES = $(DEPS)
134@@ -854,6 +859,12 @@
135 	done
136 libxml2.la: $(libxml2_la_OBJECTS) $(libxml2_la_DEPENDENCIES)
137 	$(AM_V_CCLD)$(libxml2_la_LINK) -rpath $(libdir) $(libxml2_la_OBJECTS) $(libxml2_la_LIBADD) $(LIBS)
138+        # Copie des obj
139+	@list='$(libxml2_OBJECTS)' ; for p in $$list; do \
140+	  echo "copy to PDS: $$p"; \
141+	  cp -ACMv $$p "//'A009153.XRDEV230.FIC.OBJLIB.LIBXML'"; \
142+	done
143+
144 testdso.la: $(testdso_la_OBJECTS) $(testdso_la_DEPENDENCIES)
145 	$(AM_V_CCLD)$(testdso_la_LINK)  $(testdso_la_OBJECTS) $(testdso_la_LIBADD) $(LIBS)
146 install-binPROGRAMS: $(bin_PROGRAMS)
147@@ -953,9 +964,6 @@
148 testXPath$(EXEEXT): $(testXPath_OBJECTS) $(testXPath_DEPENDENCIES)
149 	@rm -f testXPath$(EXEEXT)
150 	$(AM_V_CCLD)$(testXPath_LINK) $(testXPath_OBJECTS) $(testXPath_LDADD) $(LIBS)
151-testapi$(EXEEXT): $(testapi_OBJECTS) $(testapi_DEPENDENCIES)
152-	@rm -f testapi$(EXEEXT)
153-	$(AM_V_CCLD)$(testapi_LINK) $(testapi_OBJECTS) $(testapi_LDADD) $(LIBS)
154 testchar$(EXEEXT): $(testchar_OBJECTS) $(testchar_DEPENDENCIES)
155 	@rm -f testchar$(EXEEXT)
156 	$(AM_V_CCLD)$(testchar_LINK) $(testchar_OBJECTS) $(testchar_LDADD) $(LIBS)
157@@ -1056,7 +1064,6 @@
158 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testThreadsWin32.Po@am__quote@
159 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testURI.Po@am__quote@
160 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testXPath.Po@am__quote@
161-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testapi.Po@am__quote@
162 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testchar.Po@am__quote@
163 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testdict.Po@am__quote@
164 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testdso.Plo@am__quote@
165@@ -1755,18 +1762,6 @@
166 	uninstall-local uninstall-m4dataDATA uninstall-man \
167 	uninstall-man1 uninstall-man3 uninstall-pkgconfigDATA
168
169-
170-# that one forces the rebuild when "make rebuild" is run on doc/
171-rebuild_testapi:
172-	-@(if [ "$(PYTHON)" != "" ] ; then \
173-	    $(PYTHON) $(srcdir)/gentest.py $(srcdir) ; fi )
174-
175-# that one is just to make sure it is rebuilt if missing
176-# but adding the dependances generate mess
177-testapi.c: $(srcdir)/gentest.py
178-	-@(if [ "$(PYTHON)" != "" ] ; then \
179-	    $(PYTHON) $(srcdir)/gentest.py $(srcdir) ; fi )
180-
181 #testOOM_SOURCES=testOOM.c testOOMlib.h testOOMlib.c
182 #testOOM_LDFLAGS =
183 #testOOM_DEPENDENCIES = $(DEPS)
184@@ -1775,7 +1770,7 @@
185 runtests:
186 	[ -d test   ] || $(LN_S) $(srcdir)/test   .
187 	[ -d result ] || $(LN_S) $(srcdir)/result .
188-	$(CHECKER) ./runtest$(EXEEXT) && $(CHECKER) ./testrecurse$(EXEEXT) &&$(CHECKER) ./testapi$(EXEEXT) && $(CHECKER) ./testchar$(EXEEXT)&& $(CHECKER) ./testdict$(EXEEXT) && $(CHECKER) ./runxmlconf$(EXEEXT)
189+	$(CHECKER) ./runtest$(EXEEXT) && $(CHECKER) ./testrecurse$(EXEEXT) &&$(CHECKER) && $(CHECKER) ./testchar$(EXEEXT)&& $(CHECKER) ./testdict$(EXEEXT) && $(CHECKER) ./runxmlconf$(EXEEXT)
190 	@(if [ "$(PYTHON_SUBDIR)" != "" ] ; then cd python ; \
191 	    $(MAKE) tests ; fi)
192
193@@ -1797,10 +1792,6 @@
194 	    $(MAKE) tests ; fi)
195 	@(cd doc/examples ; $(MAKE) tests)
196
197-APItests: testapi$(EXEEXT)
198-	@echo "## Running the API regression tests this may take a little while"
199-	-@($(CHECKER) $(top_builddir)/testapi -q)
200-
201 HTMLtests : testHTML$(EXEEXT)
202 	@(echo > .memdump)
203 	@echo "## HTML regression tests"
204@@ -2746,7 +2737,7 @@
205 dist-test: distdir
206 	(mkdir -p $(distdir))
207 	(cd $(srcdir) ; tar -cf - --exclude CVS --exclude .svn --exclude .git xstc/Tests) | (cd $(distdir); tar xf -)
208-	tar -cf - $(distdir)/test $(distdir)/result $(distdir)/xstc/Tests  $(distdir)/Makefile.tests $(distdir)/README $(distdir)/README.tests $(distdir)/AUTHORS $(distdir)/testapi.c $(distdir)/runtest.c $(distdir)/runsuite.c | GZIP=$(GZIP_ENV) gzip -c >`echo "$(distdir)" | sed "s+libxml2+libxml2-tests+"`.tar.gz
209+	tar -cf - $(distdir)/test $(distdir)/result $(distdir)/xstc/Tests  $(distdir)/Makefile.tests $(distdir)/README $(distdir)/README.tests $(distdir)/AUTHORS $(distdir)/runtest.c $(distdir)/runsuite.c | GZIP=$(GZIP_ENV) gzip -c >`echo "$(distdir)" | sed "s+libxml2+libxml2-tests+"`.tar.gz
210 	@(rm -rf $(distdir)/xstc/Test)
211
212 cleantar:
213