Nick Wellnhofer
b8018afa4c
html: Fix documentation of parser options
2025-04-10 16:36:03 +02:00
Nick Wellnhofer
2ecc08f6dc
html: Deprecate more functions
2025-04-10 16:36:03 +02:00
Benjamin Gilbert
ef73541a5a
meson: don't link with pthreads on Windows
...
dependency('threads') always produces '-pthread' on GNU-like linkers, even
on Windows where we use Win32 thread primitives instead.
2025-04-05 15:35:21 -04:00
Nick Wellnhofer
8966731884
cmake, meson: Fix Darwin versions
2025-04-04 15:07:50 +02:00
Nick Wellnhofer
151c0f795d
cmake, meson: Align Darwin version info with Autotools
2025-04-04 12:48:28 +02:00
Nick Wellnhofer
0aa87d85ff
globals: Fix --with-thread-alloc build
2025-04-04 12:48:20 +02:00
Lovell Fuller
88732cae7d
meson: ensure relaxng option supports minimum option
2025-04-04 11:26:10 +01:00
Nick Wellnhofer
39c5e09da7
fuzz: Use lint.dict for XInclude fuzzer
...
lint.dict also contains useful XPath fragments. We still need a special
dictionary for XInclude.
2025-04-03 13:23:07 +02:00
Nick Wellnhofer
def3674c58
xinclude: Fix memory leak with namespace nodes
...
Abort instead of setting nodeset elements to NULL. Fixes leak of
namespace nodes and avoids extraneous error messages.
2025-04-03 11:59:22 +02:00
Nick Wellnhofer
eb0c98ebd0
autotools: Add comment regarding libtool versioning
2025-03-31 16:58:00 +02:00
Nick Wellnhofer
2c2578b6fe
io: Use switch statement in xmlIOErr
2025-03-31 13:10:00 +02:00
Collin Funk
fa539305fa
io: Remove duplicated conditionals.
2025-03-31 11:05:27 +00:00
Nick Wellnhofer
5964fb7c5f
xmllint: Fix --html --sax element callbacks
...
We need the non-namespace callbacks for HTML.
2025-03-30 15:00:28 +02:00
ThomasK
339e10feac
Eliminate removed objects
2025-03-28 22:42:01 +00:00
ThomasK
40b73eebbb
Update configure.js to support relax ng options and look for version in new location
2025-03-28 22:40:08 +00:00
Nick Wellnhofer
a5c4a6efe7
parser: Fix XML_PARSE_NOBLANKS dropping non-whitespace text
...
Regressed with 1f5b5371.
Fixes #884 .
2025-03-28 16:52:34 +01:00
Nick Wellnhofer
a6398ab696
meson: Fix build from tarball
...
Include xml2-config-meson in EXTRA_DIST.
Fixes #883 .
2025-03-28 09:08:13 +01:00
Nick Wellnhofer
19de8b47b1
cmake: Remove version from Python libxml2mod.so
...
This shouldn't be necessary and matches the Autotools build.
2025-03-27 23:07:49 +01:00
Nick Wellnhofer
2dd514078e
cmake, meson: Change library filename to libxml2.so.16.0.0
...
We have to follow Autotools here.
Fixes #882 .
2025-03-27 23:07:49 +01:00
Nick Wellnhofer
81c09e3336
gitlab-ci: Don't hardcode release version
...
Thanks to Jan Tojnar who found a work-around:
https://gitlab.gnome.org/GNOME/calls/-/merge_requests/770
This uses the artifacts:reports:dotenv feature to pass environment
variables to the deploy stage:
https://docs.gitlab.com/ci/variables/#pass-an-environment-variable-to-another-job
I didn't test the change with the sandbox yet.
2025-03-27 20:27:35 +01:00
Nick Wellnhofer
dade63971f
Bump version
2025-03-27 15:51:13 +01:00
Nick Wellnhofer
a372cbf582
Update documentation for 2.14.0
v2.14.0
2025-03-27 15:17:22 +01:00
Nick Wellnhofer
e091d9fbdf
Release v2.14.0
2025-03-27 14:38:33 +01:00
Nick Wellnhofer
dd4c0f62fa
tree: Fix xmlTextMerge with NULL args
...
Restore pre-2.13 behavior. Fixes #875 .
2025-03-18 11:11:20 +01:00
Nick Wellnhofer
54c3d42891
fuzz: Update README
2025-03-16 19:12:01 +01:00
Nick Wellnhofer
ee0eda4b12
gitlab-ci: Silence PHP and lxml test output
2025-03-16 18:40:20 +01:00
Nick Wellnhofer
7fa79341b3
Update NEWS
...
Everything should be ready for the 2.14.0 release now.
2025-03-16 12:14:33 +01:00
Nick Wellnhofer
884c899696
build: Don't make --with-legacy enable HTTP and LZMA
...
The --with-legacy option only enables --with-zlib for now.
2025-03-16 12:14:33 +01:00
Nick Wellnhofer
ee026e160d
doc: Update CMake and meson instructions
2025-03-14 04:04:22 +01:00
Nick Wellnhofer
4135ceea75
meson: Run Python tests
2025-03-14 03:27:31 +01:00
Nick Wellnhofer
e91061eb9f
hash: Fix false positive from -fanalyzer
2025-03-14 02:32:23 +01:00
Nick Wellnhofer
b349225952
include: Change some return types from int to enum
...
This also affects some new functions from 2.13.
2025-03-14 02:31:01 +01:00
Nick Wellnhofer
fd1b939168
include: Convert some macros to enums
2025-03-14 00:35:40 +01:00
Nick Wellnhofer
1078dc8233
autotools: xmlcatalog requires output module
2025-03-13 22:15:10 +01:00
Nick Wellnhofer
5b5f114d81
meson: Add xmllint and xmlcatalog shell tests
2025-03-13 22:15:10 +01:00
Nick Wellnhofer
84c6524e26
encoding: Support input-only and output-only converters
...
Make it possible to open an encoding handler only for input or output.
This avoids the creation of unnecessary converters.
Should also fix #863 .
2025-03-13 22:15:10 +01:00
Nick Wellnhofer
69b83bb68e
encoding: Detect truncated multi-byte sequences with ICU
...
Unlike iconv or the internal converters, ICU consumes truncated multi-
byte sequences at the end of an input buffer. We currently check for a
non-empty raw input buffer to detect truncated sequences, so this fails
with ICU.
It might be possible to inspect the pivot buffer pointers, but it seems
cleaner to implement a `flush` flag for some encoding and I/O functions.
After flushing, we can check for U_TRUNCATED_CHAR_FOUND with ICU, or
detect remaining input with other converters.
Also fix detection of truncated sequences for HTML, XML content and
DTDs with iconv.
2025-03-13 22:15:10 +01:00
Jan Alexander Steffens (heftig)
76c6ddfef9
meson: Install a xml2-config script
...
This one does not need build-time configuration but forwards to
`pkg-config` instead. It is mostly (and hopefully sufficiently)
compatible with the script installed by autotools.
2025-03-13 18:36:32 +01:00
Nick Wellnhofer
5c0484c3e6
gitlab-ci: Add downstream job for lxml
2025-03-11 19:23:22 +01:00
Nick Wellnhofer
03a8f1dd75
doc: Document SAX handlers a little more
2025-03-11 18:53:59 +01:00
Nick Wellnhofer
5338e43f15
gitlab-ci: Add downstream job for PHP
2025-03-11 17:48:49 +01:00
Nick Wellnhofer
8696ebe182
parser: Fix ignorableWhitespace callback
...
If ignorableWhitespace differs from the "characters" callback, we have
to check for blanks as well.
Regressed with 1f5b537.
2025-03-11 16:34:30 +01:00
Nick Wellnhofer
d83ff954af
xmllint: Make sure that parser options are used
2025-03-11 16:34:30 +01:00
Nick Wellnhofer
25490528af
parser: Fix spurious error in SAX mode
...
Short-lived regression from 5f0b1378.
2025-03-11 16:34:30 +01:00
Nick Wellnhofer
ef44c240f5
encoding: Fix memory leak in xmlCharEncNewCustomHandler
...
Short-lived regression.
2025-03-10 14:16:14 +01:00
Nick Wellnhofer
87c9e000e5
encoding: Rework custom encoding implementation API
2025-03-09 22:37:13 +01:00
Nick Wellnhofer
ba9148d8a5
parser: Undeprecate input->consumed
...
Should be deprecated after fixing #762 .
2025-03-09 20:30:49 +01:00
Nick Wellnhofer
a0dbf030ee
parser: Undeprecate ctxt->loadsubset
...
Should be deprecated after fixing #873 .
2025-03-09 20:24:06 +01:00
Nick Wellnhofer
8873a49846
html: Fix areBlanks check
...
Short-lived regression from 71122421.
2025-03-09 16:21:13 +01:00
Nick Wellnhofer
98776424a8
gitlab-ci: Use forked branch for XML::LibXML
2025-03-09 15:14:50 +01:00