You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Matt Knight f42d279890 Fix build api breaks and morale (#85)
* fix build api breaks

* fix ci

* zig parser api update
7 months ago
..
doc Fix build api breaks and morale (#85) 7 months ago
example Fix build api breaks and morale (#85) 7 months ago
fuzz Fix build api breaks and morale (#85) 7 months ago
include Fix build api breaks and morale (#85) 7 months ago
m4 Fix build api breaks and morale (#85) 7 months ago
optim Fix build api breaks and morale (#85) 7 months ago
os400 Fix build api breaks and morale (#85) 7 months ago
python Fix build api breaks and morale (#85) 7 months ago
result Fix build api breaks and morale (#85) 7 months ago
test Fix build api breaks and morale (#85) 7 months ago
vms Fix build api breaks and morale (#85) 7 months ago
win32 Fix build api breaks and morale (#85) 7 months ago
xstc Fix build api breaks and morale (#85) 7 months ago
.gitattributes Fix build api breaks and morale (#85) 7 months ago
.gitignore Fix build api breaks and morale (#85) 7 months ago
.gitlab-ci.yml Fix build api breaks and morale (#85) 7 months ago
CMakeLists.txt Fix build api breaks and morale (#85) 7 months ago
Copyright Fix build api breaks and morale (#85) 7 months ago
HTMLparser.c Fix build api breaks and morale (#85) 7 months ago
HTMLtree.c Fix build api breaks and morale (#85) 7 months ago
Makefile.am Fix build api breaks and morale (#85) 7 months ago
Makefile.tests Fix build api breaks and morale (#85) 7 months ago
NEWS Fix build api breaks and morale (#85) 7 months ago
README.md Fix build api breaks and morale (#85) 7 months ago
README.tests Fix build api breaks and morale (#85) 7 months ago
README.zOS Fix build api breaks and morale (#85) 7 months ago
SAX.c Fix build api breaks and morale (#85) 7 months ago
SAX2.c Fix build api breaks and morale (#85) 7 months ago
TODO Fix build api breaks and morale (#85) 7 months ago
TODO_SCHEMAS Fix build api breaks and morale (#85) 7 months ago
autogen.sh Fix build api breaks and morale (#85) 7 months ago
buf.c Fix build api breaks and morale (#85) 7 months ago
buf.h Fix build api breaks and morale (#85) 7 months ago
build_glob.py Fix build api breaks and morale (#85) 7 months ago
c14n.c Fix build api breaks and morale (#85) 7 months ago
catalog.c Fix build api breaks and morale (#85) 7 months ago
check-relaxng-test-suite.py Fix build api breaks and morale (#85) 7 months ago
check-relaxng-test-suite2.py Fix build api breaks and morale (#85) 7 months ago
check-xinclude-test-suite.py Fix build api breaks and morale (#85) 7 months ago
check-xml-test-suite.py Fix build api breaks and morale (#85) 7 months ago
check-xsddata-test-suite.py Fix build api breaks and morale (#85) 7 months ago
chvalid.c Fix build api breaks and morale (#85) 7 months ago
chvalid.def Fix build api breaks and morale (#85) 7 months ago
config.h.cmake.in Fix build api breaks and morale (#85) 7 months ago
configure.ac Fix build api breaks and morale (#85) 7 months ago
dbgen.pl Fix build api breaks and morale (#85) 7 months ago
dbgenattr.pl Fix build api breaks and morale (#85) 7 months ago
debugXML.c Fix build api breaks and morale (#85) 7 months ago
dict.c Fix build api breaks and morale (#85) 7 months ago
enc.h Fix build api breaks and morale (#85) 7 months ago
encoding.c Fix build api breaks and morale (#85) 7 months ago
entities.c Fix build api breaks and morale (#85) 7 months ago
error.c Fix build api breaks and morale (#85) 7 months ago
genChRanges.py Fix build api breaks and morale (#85) 7 months ago
genUnicode.py Fix build api breaks and morale (#85) 7 months ago
gentest.py Fix build api breaks and morale (#85) 7 months ago
global.data Fix build api breaks and morale (#85) 7 months ago
globals.c Fix build api breaks and morale (#85) 7 months ago
hash.c Fix build api breaks and morale (#85) 7 months ago
legacy.c Fix build api breaks and morale (#85) 7 months ago
libxml-2.0-uninstalled.pc.in Fix build api breaks and morale (#85) 7 months ago
libxml-2.0.pc.in Fix build api breaks and morale (#85) 7 months ago
libxml.h Fix build api breaks and morale (#85) 7 months ago
libxml.m4 Fix build api breaks and morale (#85) 7 months ago
libxml.spec.in Fix build api breaks and morale (#85) 7 months ago
libxml2-config.cmake.cmake.in Fix build api breaks and morale (#85) 7 months ago
libxml2-config.cmake.in Fix build api breaks and morale (#85) 7 months ago
libxml2.doap Fix build api breaks and morale (#85) 7 months ago
libxml2.syms Fix build api breaks and morale (#85) 7 months ago
list.c Fix build api breaks and morale (#85) 7 months ago
nanoftp.c Fix build api breaks and morale (#85) 7 months ago
nanohttp.c Fix build api breaks and morale (#85) 7 months ago
parser.c Fix build api breaks and morale (#85) 7 months ago
parserInternals.c Fix build api breaks and morale (#85) 7 months ago
pattern.c Fix build api breaks and morale (#85) 7 months ago
relaxng.c Fix build api breaks and morale (#85) 7 months ago
rngparser.c Fix build api breaks and morale (#85) 7 months ago
runsuite.c Fix build api breaks and morale (#85) 7 months ago
runtest.c Fix build api breaks and morale (#85) 7 months ago
runxmlconf.c Fix build api breaks and morale (#85) 7 months ago
save.h Fix build api breaks and morale (#85) 7 months ago
schematron.c Fix build api breaks and morale (#85) 7 months ago
testAutomata.c Fix build api breaks and morale (#85) 7 months ago
testModule.c Fix build api breaks and morale (#85) 7 months ago
testOOM.c Fix build api breaks and morale (#85) 7 months ago
testOOMlib.c Fix build api breaks and morale (#85) 7 months ago
testOOMlib.h Fix build api breaks and morale (#85) 7 months ago
testThreads.c Fix build api breaks and morale (#85) 7 months ago
testapi.c Fix build api breaks and morale (#85) 7 months ago
testchar.c Fix build api breaks and morale (#85) 7 months ago
testdict.c Fix build api breaks and morale (#85) 7 months ago
testdso.c Fix build api breaks and morale (#85) 7 months ago
testlimits.c Fix build api breaks and morale (#85) 7 months ago
testrecurse.c Fix build api breaks and morale (#85) 7 months ago
threads.c Fix build api breaks and morale (#85) 7 months ago
timsort.h Fix build api breaks and morale (#85) 7 months ago
tree.c Fix build api breaks and morale (#85) 7 months ago
trio.c Fix build api breaks and morale (#85) 7 months ago
trio.h Fix build api breaks and morale (#85) 7 months ago
triodef.h Fix build api breaks and morale (#85) 7 months ago
trionan.c Fix build api breaks and morale (#85) 7 months ago
trionan.h Fix build api breaks and morale (#85) 7 months ago
triop.h Fix build api breaks and morale (#85) 7 months ago
triostr.c Fix build api breaks and morale (#85) 7 months ago
triostr.h Fix build api breaks and morale (#85) 7 months ago
uri.c Fix build api breaks and morale (#85) 7 months ago
valid.c Fix build api breaks and morale (#85) 7 months ago
xinclude.c Fix build api breaks and morale (#85) 7 months ago
xlink.c Fix build api breaks and morale (#85) 7 months ago
xml2-config.in Fix build api breaks and morale (#85) 7 months ago
xmlIO.c Fix build api breaks and morale (#85) 7 months ago
xmlcatalog.c Fix build api breaks and morale (#85) 7 months ago
xmllint.c Fix build api breaks and morale (#85) 7 months ago
xmlmemory.c Fix build api breaks and morale (#85) 7 months ago
xmlmodule.c Fix build api breaks and morale (#85) 7 months ago
xmlreader.c Fix build api breaks and morale (#85) 7 months ago
xmlregexp.c Fix build api breaks and morale (#85) 7 months ago
xmlsave.c Fix build api breaks and morale (#85) 7 months ago
xmlschemas.c Fix build api breaks and morale (#85) 7 months ago
xmlschemastypes.c Fix build api breaks and morale (#85) 7 months ago
xmlstring.c Fix build api breaks and morale (#85) 7 months ago
xmlunicode.c Fix build api breaks and morale (#85) 7 months ago
xmlwriter.c Fix build api breaks and morale (#85) 7 months ago
xpath.c Fix build api breaks and morale (#85) 7 months ago
xpointer.c Fix build api breaks and morale (#85) 7 months ago
xzlib.c Fix build api breaks and morale (#85) 7 months ago
xzlib.h Fix build api breaks and morale (#85) 7 months ago

README.md

libxml2

libxml2 is an XML toolkit implemented in C, originally developed for the GNOME Project.

Full documentation is available at https://gitlab.gnome.org/GNOME/libxml2/-/wikis.

Bugs should be reported at https://gitlab.gnome.org/GNOME/libxml2/-/issues.

A mailing list xml@gnome.org is available. You can subscribe at https://mail.gnome.org/mailman/listinfo/xml. The list archive is at https://mail.gnome.org/archives/xml/.

License

This code is released under the MIT License, see the Copyright file.

Build instructions

libxml2 can be built with GNU Autotools, CMake, or several other build systems in platform-specific subdirectories.

Autotools (for POSIX systems like Linux, BSD, macOS)

If you build from a Git tree, you have to install Autotools and start by generating the configuration files with:

./autogen.sh

If you build from a source tarball, extract the archive with:

tar xf libxml2-xxx.tar.gz
cd libxml2-xxx

To see a list of build options:

./configure --help

Also see the INSTALL file for additional instructions. Then you can configure and build the library:

./configure [possible options]
make

Note that by default, no optimization options are used. You have to enable them manually, for example with:

CFLAGS='-O2 -fno-semantic-interposition' ./configure

Now you can run the test suite with:

make check

Please report test failures to the mailing list or bug tracker.

Then you can install the library:

make install

At that point you may have to rerun ldconfig or a similar utility to update your list of installed shared libs.

CMake (mainly for Windows)

Another option for compiling libxml is using CMake:

cmake -E tar xf libxml2-xxx.tar.gz
cmake -S libxml2-xxx -B libxml2-xxx-build [possible options]
cmake --build libxml2-xxx-build
cmake --install libxml2-xxx-build

Common CMake options include:

-D BUILD_SHARED_LIBS=OFF            # build static libraries
-D CMAKE_BUILD_TYPE=Release         # specify build type
-D CMAKE_INSTALL_PREFIX=/usr/local  # specify the install path
-D LIBXML2_WITH_ICONV=OFF           # disable iconv
-D LIBXML2_WITH_LZMA=OFF            # disable liblzma
-D LIBXML2_WITH_PYTHON=OFF          # disable Python
-D LIBXML2_WITH_ZLIB=OFF            # disable libz

You can also open the libxml source directory with its CMakeLists.txt directly in various IDEs such as CLion, QtCreator, or Visual Studio.

Dependencies

Libxml does not require any other libraries. A platform with somewhat recent POSIX support should be sufficient (please report any violation to this rule you may find).

However, if found at configuration time, libxml will detect and use the following libraries:

  • libz, a highly portable and widely available compression library.
  • liblzma, another compression library.
  • libiconv, a character encoding conversion library. The iconv function is part of POSIX.1-2001, so libiconv isn't required on modern UNIX-like systems like Linux, BSD or macOS.
  • ICU, a Unicode library. Mainly useful as an alternative to iconv on Windows. Unnecessary on most other systems.

Contributing

The current version of the code can be found in GNOME's GitLab at at https://gitlab.gnome.org/GNOME/libxml2. The best way to get involved is by creating issues and merge requests on GitLab. Alternatively, you can start discussions and send patches to the mailing list. If you want to work with patches, please format them with git-format-patch and use plain text attachments.

All code must conform to C89 and pass the GitLab CI tests. Add regression tests if possible.

Authors

  • Daniel Veillard
  • Bjorn Reese
  • William Brack
  • Igor Zlatkovic for the Windows port
  • Aleksey Sanin
  • Nick Wellnhofer