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.
freshtomato-arm/release/src-rt-6.x.4708/router/libxml2
pedro 0449d8db9a libxml2: update to 2.14.3 5 months ago
..
.gitlab-ci libxml2: update to 2.14.1 6 months ago
doc libxml2: update to 2.14.1 6 months ago
example libxml2: update to 2.14.1 6 months ago
fuzz libxml2: update to 2.14.1 6 months ago
include libxml2: update to 2.14.3 5 months ago
m4 libxml2: update to 2.14.1 6 months ago
python libxml2: update to 2.14.3 5 months ago
result libxml2: update to 2.14.3 5 months ago
test libxml2: update to 2.14.3 5 months ago
tools libxml2: update to 2.14.3 5 months ago
win32 libxml2: update to 2.14.1 6 months ago
xstc
.editorconfig
.gitattributes
.gitignore libxml2: update to 2.14.1 6 months ago
.gitlab-ci.yml libxml2: update to 2.14.1 6 months ago
CMakeLists.txt libxml2: update to 2.14.2 5 months ago
Copyright libxml2: update to 2.14.1 6 months ago
HTMLparser.c libxml2: update to 2.14.3 5 months ago
HTMLtree.c libxml2: update to 2.14.1 6 months ago
MAINTAINERS.md libxml2: update to 2.14.1 6 months ago
Makefile.am libxml2: update to 2.14.1 6 months ago
NEWS libxml2: update to 2.14.3 5 months ago
README.md libxml2: update to 2.14.1 6 months ago
README.zOS
SAX2.c libxml2: update to 2.14.1 6 months ago
VERSION libxml2: update to 2.14.3 5 months ago
autogen.sh libxml2: update to 2.14.1 6 months ago
buf.c libxml2: update to 2.14.1 6 months ago
c14n.c libxml2: update to 2.14.1 6 months ago
catalog.c libxml2: update to 2.14.1 6 months ago
chvalid.c
chvalid.def
config.h.cmake.in libxml2: update to 2.14.1 6 months ago
configure.ac libxml2: update to 2.14.3 5 months ago
debugXML.c libxml2: update to 2.14.1 6 months ago
dict.c libxml2: update to 2.14.1 6 months ago
encoding.c libxml2: update to 2.14.1 6 months ago
entities.c libxml2: update to 2.14.1 6 months ago
error.c libxml2: update to 2.14.1 6 months ago
globals.c libxml2: update to 2.14.2 5 months ago
hash.c libxml2: update to 2.14.1 6 months ago
html5ent.inc libxml2: update to 2.14.1 6 months ago
iso8859x.inc libxml2: update to 2.14.1 6 months ago
libxml-2.0.pc.in libxml2: update to 2.14.1 6 months ago
libxml.h libxml2: update to 2.14.1 6 months ago
libxml.m4 libxml2: update to 2.14.1 6 months ago
libxml2-config.cmake.cmake.in libxml2: update to 2.14.1 6 months ago
libxml2-config.cmake.in libxml2: update to 2.14.3 5 months ago
libxml2.doap
lintmain.c libxml2: update to 2.14.1 6 months ago
list.c libxml2: update to 2.14.1 6 months ago
meson.build libxml2: update to 2.14.3 5 months ago
meson_options.txt libxml2: update to 2.14.1 6 months ago
nanohttp.c libxml2: update to 2.14.1 6 months ago
parser.c libxml2: update to 2.14.3 5 months ago
parserInternals.c libxml2: update to 2.14.3 5 months ago
pattern.c libxml2: update to 2.14.1 6 months ago
relaxng.c libxml2: update to 2.14.1 6 months ago
runsuite.c libxml2: update to 2.14.1 6 months ago
runtest.c libxml2: update to 2.14.3 5 months ago
runxmlconf.c libxml2: update to 2.14.1 6 months ago
schematron.c libxml2: update to 2.14.1 6 months ago
shell.c libxml2: update to 2.14.1 6 months ago
testModule.c libxml2: update to 2.14.1 6 months ago
testapi.c libxml2: update to 2.14.1 6 months ago
testchar.c libxml2: update to 2.14.1 6 months ago
testdict.c libxml2: update to 2.13.6 8 months ago
testdso.c
testlimits.c libxml2: update to 2.14.1 6 months ago
testparser.c libxml2: update to 2.14.3 5 months ago
testrecurse.c libxml2: update to 2.14.1 6 months ago
threads.c libxml2: update to 2.14.1 6 months ago
timsort.h libxml2: update to 2.14.1 6 months ago
tree.c libxml2: update to 2.14.1 6 months ago
uri.c libxml2: update to 2.14.1 6 months ago
valid.c libxml2: update to 2.14.3 5 months ago
xinclude.c libxml2: update to 2.14.1 6 months ago
xlink.c libxml2: update to 2.14.1 6 months ago
xml2-config-meson libxml2: update to 2.14.1 6 months ago
xml2-config.in libxml2: update to 2.14.1 6 months ago
xmlIO.c libxml2: update to 2.14.1 6 months ago
xmlcatalog.c libxml2: update to 2.14.1 6 months ago
xmllint.c libxml2: update to 2.14.3 5 months ago
xmlmemory.c libxml2: update to 2.14.1 6 months ago
xmlmodule.c libxml2: update to 2.14.1 6 months ago
xmlreader.c libxml2: update to 2.14.3 5 months ago
xmlregexp.c libxml2: update to 2.14.1 6 months ago
xmlsave.c libxml2: update to 2.14.3 5 months ago
xmlschemas.c libxml2: update to 2.14.2 5 months ago
xmlschemastypes.c libxml2: update to 2.14.1 6 months ago
xmlstring.c libxml2: update to 2.14.1 6 months ago
xmlunicode.c libxml2: update to 2.14.1 6 months ago
xmlwriter.c libxml2: update to 2.14.1 6 months ago
xpath.c libxml2: update to 2.14.1 6 months ago
xpointer.c libxml2: update to 2.14.1 6 months ago
xzlib.c libxml2: update to 2.14.1 6 months ago

README.md

libxml2

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

Official releases can be downloaded from https://download.gnome.org/sources/libxml2/

The git repository is hosted on GNOME's GitLab server: https://gitlab.gnome.org/GNOME/libxml2

Bugs should be reported at https://gitlab.gnome.org/GNOME/libxml2/-/issues. Please report security issues to our bug tracker as well. Make sure to mark the issue as confidential.

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

License

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

Build instructions

libxml2 can be built with GNU Autotools, CMake or meson.

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 [configuration options]

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

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

Then you can configure and build the library:

./configure [configuration options]
make

The following options disable or enable code modules and relevant symbols:

--with-c14n             Canonical XML 1.0 support (on)
--with-catalog          XML Catalogs support (on)
--with-debug            debugging module (on)
--with-history          history support for xmllint shell (off)
--with-readline[=DIR]   use readline in DIR for shell (off)
--with-html             HTML parser (on)
--with-http             HTTP support (off)
--with-iconv[=DIR]      iconv support (on)
--with-icu              ICU support (off)
--with-iso8859x         ISO-8859-X support if no iconv (on)
--with-lzma[=DIR]       use liblzma in DIR (off)
--with-modules          dynamic modules support (on)
--with-output           serialization support (on)
--with-pattern          xmlPattern selection interface (on)
--with-push             push parser interfaces (on)
--with-python           Python bindings (on)
--with-reader           xmlReader parsing interface (on)
--with-regexps          regular expressions support (on)
--with-relaxng          RELAX NG support (on)
--with-sax1             older SAX1 interface (on)
--with-schemas          XML Schemas 1.0 support (on)
--with-schematron       Schematron support (on)
--with-threads          multithreading support (on)
--with-thread-alloc     per-thread malloc hooks (off)
--with-valid            DTD validation support (on)
--with-writer           xmlWriter serialization interface (on)
--with-xinclude         XInclude 1.0 support (on)
--with-xpath            XPath 1.0 support (on)
--with-xptr             XPointer support (on)
--with-zlib[=DIR]       use libz in DIR (off)

Other options:

--with-minimum          build a minimally sized library (off)
--with-legacy           maximum ABI compatibility (off)

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 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)

Example commands:

cmake -E tar xf libxml2-xxx.tar.xz
cmake -S libxml2-xxx -B builddir [options]
cmake --build builddir
ctest --test-dir builddir
cmake --install builddir

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_PYTHON=OFF          # disable Python
-D LIBXML2_WITH_ZLIB=ON             # enable zlib

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

Meson

Example commands:

meson setup [options] builddir
ninja -C builddir
meson test -C builddir
ninja -C builddir install

See the meson_options.txt file for options. For example:

-Dprefix=$prefix
-Dhistory=enabled
-Dhttp=enabled
-Dschematron=disabled
-Dzlib=enabled

Dependencies

libxml2 supports POSIX and Windows operating systems.

The iconv function is required for conversion of character encodings. This function is part of POSIX.1-2001. If your platform doesn't provide iconv, you need an external libiconv library, for example GNU libiconv. Using ICU is also supported but discouraged.

If enabled, libxml uses libz or liblzma to support reading compressed files. Use of this feature is discouraged.

The xmllint executable uses libreadline and libhistory if enabled.

Contributing

The current version of the code can be found in GNOME's GitLab at https://gitlab.gnome.org/GNOME/libxml2. The best way to get involved is by creating issues and merge requests on GitLab.

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