android13/external/libxml2
liiir1985 7f62dcda9f initial 2024-06-22 20:45:49 +08:00
..
VxWorks initial 2024-06-22 20:45:49 +08:00
bakefile initial 2024-06-22 20:45:49 +08:00
doc initial 2024-06-22 20:45:49 +08:00
example initial 2024-06-22 20:45:49 +08:00
fuzz initial 2024-06-22 20:45:49 +08:00
include initial 2024-06-22 20:45:49 +08:00
macos initial 2024-06-22 20:45:49 +08:00
optim initial 2024-06-22 20:45:49 +08:00
os400 initial 2024-06-22 20:45:49 +08:00
python initial 2024-06-22 20:45:49 +08:00
result initial 2024-06-22 20:45:49 +08:00
test initial 2024-06-22 20:45:49 +08:00
vms initial 2024-06-22 20:45:49 +08:00
win32 initial 2024-06-22 20:45:49 +08:00
xstc initial 2024-06-22 20:45:49 +08:00
.gitattributes initial 2024-06-22 20:45:49 +08:00
.gitlab-ci.yml initial 2024-06-22 20:45:49 +08:00
Android.bp initial 2024-06-22 20:45:49 +08:00
CMakeLists.txt initial 2024-06-22 20:45:49 +08:00
CleanSpec.mk initial 2024-06-22 20:45:49 +08:00
Copyright initial 2024-06-22 20:45:49 +08:00
DOCBparser.c initial 2024-06-22 20:45:49 +08:00
HTMLparser.c initial 2024-06-22 20:45:49 +08:00
HTMLtree.c initial 2024-06-22 20:45:49 +08:00
METADATA initial 2024-06-22 20:45:49 +08:00
MODULE_LICENSE_MIT initial 2024-06-22 20:45:49 +08:00
Makefile.am initial 2024-06-22 20:45:49 +08:00
Makefile.tests initial 2024-06-22 20:45:49 +08:00
NEWS initial 2024-06-22 20:45:49 +08:00
NOTICE initial 2024-06-22 20:45:49 +08:00
OWNERS initial 2024-06-22 20:45:49 +08:00
README.md initial 2024-06-22 20:45:49 +08:00
README.tests initial 2024-06-22 20:45:49 +08:00
README.zOS initial 2024-06-22 20:45:49 +08:00
SAX.c initial 2024-06-22 20:45:49 +08:00
SAX2.c initial 2024-06-22 20:45:49 +08:00
TODO initial 2024-06-22 20:45:49 +08:00
TODO_SCHEMAS initial 2024-06-22 20:45:49 +08:00
acinclude.m4 initial 2024-06-22 20:45:49 +08:00
autogen.sh initial 2024-06-22 20:45:49 +08:00
buf.c initial 2024-06-22 20:45:49 +08:00
buf.h initial 2024-06-22 20:45:49 +08:00
build_glob.py initial 2024-06-22 20:45:49 +08:00
c14n.c initial 2024-06-22 20:45:49 +08:00
catalog.c initial 2024-06-22 20:45:49 +08:00
check-relaxng-test-suite.py initial 2024-06-22 20:45:49 +08:00
check-relaxng-test-suite2.py initial 2024-06-22 20:45:49 +08:00
check-xinclude-test-suite.py initial 2024-06-22 20:45:49 +08:00
check-xml-test-suite.py initial 2024-06-22 20:45:49 +08:00
check-xsddata-test-suite.py initial 2024-06-22 20:45:49 +08:00
chvalid.c initial 2024-06-22 20:45:49 +08:00
chvalid.def initial 2024-06-22 20:45:49 +08:00
config.h initial 2024-06-22 20:45:49 +08:00
config.h.cmake.in initial 2024-06-22 20:45:49 +08:00
configure.ac initial 2024-06-22 20:45:49 +08:00
dbgen.pl initial 2024-06-22 20:45:49 +08:00
dbgenattr.pl initial 2024-06-22 20:45:49 +08:00
debugXML.c initial 2024-06-22 20:45:49 +08:00
dict.c initial 2024-06-22 20:45:49 +08:00
enc.h initial 2024-06-22 20:45:49 +08:00
encoding.c initial 2024-06-22 20:45:49 +08:00
entities.c initial 2024-06-22 20:45:49 +08:00
error.c initial 2024-06-22 20:45:49 +08:00
genChRanges.py initial 2024-06-22 20:45:49 +08:00
genUnicode.py initial 2024-06-22 20:45:49 +08:00
gentest.py initial 2024-06-22 20:45:49 +08:00
global.data initial 2024-06-22 20:45:49 +08:00
globals.c initial 2024-06-22 20:45:49 +08:00
hash.c initial 2024-06-22 20:45:49 +08:00
legacy.c initial 2024-06-22 20:45:49 +08:00
libxml-2.0-uninstalled.pc.in initial 2024-06-22 20:45:49 +08:00
libxml-2.0.pc.in initial 2024-06-22 20:45:49 +08:00
libxml.3 initial 2024-06-22 20:45:49 +08:00
libxml.h initial 2024-06-22 20:45:49 +08:00
libxml.m4 initial 2024-06-22 20:45:49 +08:00
libxml.spec.in initial 2024-06-22 20:45:49 +08:00
libxml2-config.cmake.cmake.in initial 2024-06-22 20:45:49 +08:00
libxml2-config.cmake.in initial 2024-06-22 20:45:49 +08:00
libxml2.doap initial 2024-06-22 20:45:49 +08:00
libxml2.syms initial 2024-06-22 20:45:49 +08:00
list.c initial 2024-06-22 20:45:49 +08:00
nanoftp.c initial 2024-06-22 20:45:49 +08:00
nanohttp.c initial 2024-06-22 20:45:49 +08:00
parser.c initial 2024-06-22 20:45:49 +08:00
parserInternals.c initial 2024-06-22 20:45:49 +08:00
pattern.c initial 2024-06-22 20:45:49 +08:00
post_update.sh initial 2024-06-22 20:45:49 +08:00
regressions.py initial 2024-06-22 20:45:49 +08:00
regressions.xml initial 2024-06-22 20:45:49 +08:00
relaxng.c initial 2024-06-22 20:45:49 +08:00
rngparser.c initial 2024-06-22 20:45:49 +08:00
runsuite.c initial 2024-06-22 20:45:49 +08:00
runtest.c initial 2024-06-22 20:45:49 +08:00
runxmlconf.c initial 2024-06-22 20:45:49 +08:00
save.h initial 2024-06-22 20:45:49 +08:00
schematron.c initial 2024-06-22 20:45:49 +08:00
testAutomata.c initial 2024-06-22 20:45:49 +08:00
testC14N.c initial 2024-06-22 20:45:49 +08:00
testHTML.c initial 2024-06-22 20:45:49 +08:00
testModule.c initial 2024-06-22 20:45:49 +08:00
testOOM.c initial 2024-06-22 20:45:49 +08:00
testOOMlib.c initial 2024-06-22 20:45:49 +08:00
testOOMlib.h initial 2024-06-22 20:45:49 +08:00
testReader.c initial 2024-06-22 20:45:49 +08:00
testRegexp.c initial 2024-06-22 20:45:49 +08:00
testRelax.c initial 2024-06-22 20:45:49 +08:00
testSAX.c initial 2024-06-22 20:45:49 +08:00
testSchemas.c initial 2024-06-22 20:45:49 +08:00
testThreads.c initial 2024-06-22 20:45:49 +08:00
testURI.c initial 2024-06-22 20:45:49 +08:00
testXPath.c initial 2024-06-22 20:45:49 +08:00
testapi.c initial 2024-06-22 20:45:49 +08:00
testchar.c initial 2024-06-22 20:45:49 +08:00
testdict.c initial 2024-06-22 20:45:49 +08:00
testdso.c initial 2024-06-22 20:45:49 +08:00
testlimits.c initial 2024-06-22 20:45:49 +08:00
testrecurse.c initial 2024-06-22 20:45:49 +08:00
threads.c initial 2024-06-22 20:45:49 +08:00
timsort.h initial 2024-06-22 20:45:49 +08:00
tree.c initial 2024-06-22 20:45:49 +08:00
trio.c initial 2024-06-22 20:45:49 +08:00
trio.h initial 2024-06-22 20:45:49 +08:00
triodef.h initial 2024-06-22 20:45:49 +08:00
trionan.c initial 2024-06-22 20:45:49 +08:00
trionan.h initial 2024-06-22 20:45:49 +08:00
triop.h initial 2024-06-22 20:45:49 +08:00
triostr.c initial 2024-06-22 20:45:49 +08:00
triostr.h initial 2024-06-22 20:45:49 +08:00
uri.c initial 2024-06-22 20:45:49 +08:00
valid.c initial 2024-06-22 20:45:49 +08:00
xinclude.c initial 2024-06-22 20:45:49 +08:00
xlink.c initial 2024-06-22 20:45:49 +08:00
xml2-config.1 initial 2024-06-22 20:45:49 +08:00
xml2-config.in initial 2024-06-22 20:45:49 +08:00
xml2Conf.sh.in initial 2024-06-22 20:45:49 +08:00
xmlIO.c initial 2024-06-22 20:45:49 +08:00
xmlcatalog.c initial 2024-06-22 20:45:49 +08:00
xmllint.c initial 2024-06-22 20:45:49 +08:00
xmlmemory.c initial 2024-06-22 20:45:49 +08:00
xmlmodule.c initial 2024-06-22 20:45:49 +08:00
xmlreader.c initial 2024-06-22 20:45:49 +08:00
xmlregexp.c initial 2024-06-22 20:45:49 +08:00
xmlsave.c initial 2024-06-22 20:45:49 +08:00
xmlschemas.c initial 2024-06-22 20:45:49 +08:00
xmlschemastypes.c initial 2024-06-22 20:45:49 +08:00
xmlstring.c initial 2024-06-22 20:45:49 +08:00
xmlunicode.c initial 2024-06-22 20:45:49 +08:00
xmlwriter.c initial 2024-06-22 20:45:49 +08:00
xpath.c initial 2024-06-22 20:45:49 +08:00
xpointer.c initial 2024-06-22 20:45:49 +08:00
xzlib.c initial 2024-06-22 20:45:49 +08:00
xzlib.h initial 2024-06-22 20:45:49 +08:00

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